-
Notifications
You must be signed in to change notification settings - Fork 378
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (56 loc) · 2.49 KB
/
Copy pathbuild.gradle
File metadata and controls
69 lines (56 loc) · 2.49 KB
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
ext {
buildVersions = [
minSdkVersion: 16
]
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
compileSdkVersion rootProject.buildVersions.compileSdkVersion
defaultConfig {
minSdkVersion buildVersions.minSdkVersion
consumerProguardFiles 'consumer-proguard-rules.pro'
}
buildTypes {
original {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled false
}
unity {
minifyEnabled false
}
}
}
// api || implementation = compile and runtime
// KEEP: version ranges, these get used in the released POM file for maven central
// NOTE: To prevent consumers from getting alpha or beta version of dependencies listed here
// make sure the latest minor value is a known stable version. Using a range for the
// patch version is ok, since this allows getting bug fix versions.
dependencies {
compileOnly fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
// play-services-location:16.0.0 is the last version before going to AndroidX
// play-services-location:17.0.0 is the first version using AndroidX
compileOnly 'com.google.android.gms:play-services-location:[17.0.0, 18.0.99]'
// play-services-base:16.1.0 is the last version before going to AndroidX
// play-services-base:17.0.0 is the first version using AndroidX
// Required for GoogleApiAvailability
implementation 'com.google.android.gms:play-services-base:[17.0.0, 17.6.99]'
implementation("androidx.concurrent:concurrent-futures:$androidConcurrentFutures")
// firebase-messaging:18.0.0 is the last version before going to AndroidX
// firebase-messaging:19.0.0 is the first version using AndroidX
api 'com.google.firebase:firebase-messaging:[19.0.0, 22.0.99]'
// Huawei PushKit
// KEEP as "compileOnly", so OneSignal isn't a direct dependency in the POM file.
compileOnly "com.huawei.hms:push:$huaweiHMSPushVersion"
compileOnly "com.huawei.hms:location:$huaweiHMSLocationVersion"
api 'androidx.cardview:cardview:[1.0.0, 1.0.99]'
api 'androidx.legacy:legacy-support-v4:[1.0.0, 1.0.99]'
api 'androidx.browser:browser:[1.0.0, 1.3.99]'
api 'androidx.appcompat:appcompat:[1.0.0, 1.3.99]'
api 'androidx.work:work-runtime:[2.1.0, 2.7.99]'
}
apply from: 'maven-push.gradle'