-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
145 lines (130 loc) · 5.16 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.8.1'
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
apply plugin: 'com.android.application'
dependencies {
implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.annotation:annotation:1.7.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation "androidx.lifecycle:lifecycle-viewmodel:2.6.2"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2"
implementation 'androidx.preference:preference:1.2.1'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation 'com.google.android.material:material:1.10.0'
implementation 'com.android.billingclient:billing:6.1.0'
implementation 'androidx.fragment:fragment:1.6.2'
// implementation 'uk.co.samuelwall:material-tap-target-prompt:3.0.0'
// implementation project(':externals:ShowcaseView:library')
// implementation 'com.xenione.libs:tab-digit:1.0.2'
implementation project(':externals:android-preferences')
implementation project(':externals:tab-digit:digit')
implementation fileTree(include: '*.jar', dir: 'libs')
implementation 'com.github.prolificinteractive:material-calendarview:1.6.1'
implementation 'androidx.palette:palette:1.0.0'
implementation 'androidx.exifinterface:exifinterface:1.3.6'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "androidx.coordinatorlayout:coordinatorlayout:1.2.0"
implementation 'androidx.mediarouter:mediarouter:1.6.0'
implementation 'com.google.android.gms:play-services-cast-framework:21.3.0'
implementation 'androidx.activity:activity:1.9.3'
testImplementation 'junit:junit:4.13.2'
implementation 'org.shredzone.commons:commons-suncalc:2.11'
implementation 'com.android.volley:volley:1.2.1'
implementation 'com.google.android.exoplayer:exoplayer:2.19.1'
implementation 'com.github.android:renderscript-intrinsics-replacement-toolkit:b6363490c3'
implementation 'com.github.martin-stone:hsv-alpha-color-picker-android:3.0.1'
implementation 'androidx.work:work-runtime:2.8.1'
implementation 'androidx.work:work-runtime-ktx:2.8.1'
implementation 'androidx.work:work-multiprocess:2.8.1'
implementation 'com.prof18.rssparser:rssparser:4.0.2'
// https://developer.android.com/studio/build/multidex
def multidex_version = "2.0.1"
implementation "androidx.multidex:multidex:$multidex_version"
}
def getApiKeyOWM() {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
return properties.getProperty("apikey.owm")
}
def getApiKeyDarkSky() {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
return properties.getProperty("apikey.darksky")
}
android {
namespace 'com.firebirdberlin.nightdream'
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
androidTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
buildTypes {
release {
lintOptions {
checkReleaseBuilds false
disable 'MissingTranslation'
abortOnError false
}
proguardFile '/home/stefan/android/projects/nightdream/proguard-project.txt'
minifyEnabled true
shrinkResources true
}
debug {
proguardFiles 'proguard-project.txt'
}
}
testOptions {
unitTests.returnDefaultValues = true
}
defaultConfig {
minSdkVersion 19
compileSdk 34
buildConfigField "String", "API_KEY_OWM", "\""+getApiKeyOWM()+"\""
buildConfigField "String", "API_KEY_DARK_SKY", "\""+getApiKeyDarkSky()+"\""
targetSdkVersion 34
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
}
buildFeatures {
dataBinding true
renderScript true
aidl true
}
}