forked from ishyian/push-huawei-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (71 loc) · 2.71 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
buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://developer.huawei.com/repo/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.2'
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
repositories {
google()
mavenCentral()
maven { url 'https://developer.huawei.com/repo/' }
}
apply plugin: 'com.android.library'
apply plugin: 'com.huawei.agconnect'
android {
compileSdk 34
namespace "com.devinotele.huaweidevinosdk.sdk"
defaultConfig {
minSdkVersion 23
targetSdkVersion 34
versionCode 5
versionName "3.1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
buildConfigField "String", "VERSION_NAME", "\"${defaultConfig.versionName}\""
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
libraryVariants.configureEach { variant ->
variant.outputs.configureEach { output ->
outputFileName = "${archivesBaseName}-${variant.name}-${defaultConfig.versionName}.aar"
}
}
android.buildFeatures.buildConfig true
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.core:core:1.12.0'
implementation 'androidx.media:media:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
implementation 'com.huawei.hms:base:6.2.0.300'
implementation 'com.huawei.hms:push:6.1.0.300'
implementation 'com.huawei.hms:location:5.0.5.300'
implementation 'com.huawei.agconnect:agconnect-core:1.6.1.300'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.9.0"))
def work_version = "2.9.0"
implementation "androidx.work:work-runtime:$work_version"
}