-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
108 lines (83 loc) · 2.75 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
apply plugin: 'com.android.library'
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName "1.0"
// multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.2'
}
buildTypes {
debug {
debuggable true
minifyEnabled false
useProguard false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
debuggable false
minifyEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
sourceSets { main { java.srcDirs = ['src/main/java', 'src/main/java/com/gata/src'] }
}
repositories {
mavenCentral()
}
}
dependencies {
// api 'androidx.multidex:multidex:2.0.1'
// api 'androidx.test.ext:junit:1.1.2'
// api 'androidx.legacy:legacy-support-v4:1.0.0'
// implementation 'androidx.exifinterface:exifinterface:1.3.1'
// implementation 'com.android.support:appcompat-v7:29.0.0'
// api 'com.android.support:support-v13'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.mikhaellopez:circularprogressbar:3.0.3'
implementation 'com.loopj.android:android-async-http:1.4.11'
implementation 'com.google.android.gms:play-services-auth:19.0.0'
}
task __deleteJar(type: Delete){
delete 'outjar/libGataSDK.jar'
}
task __AAR_Task(type: Copy) {
delete 'outjar/libGataSDK.aar'
dependsOn 'assembleRelease'
from('build/outputs/aar')
into('outjar')
include('gata-release.aar')
rename('gata-release.aar', 'libGataSDK.aar')
}
task __JAR_Task(type: Copy) {
// Run createFullJarRelease from other
delete 'outjar/libGataSDK.jar'
// dependsOn 'createFullJarRelease'
from('build/intermediates/shrunk_jar/release')
into('outjar')
include('minified.jar')
rename('minified.jar', 'libGataSDK.jar')
// from('build/intermediates/compile_library_classes/release')
// into('outjar/')
// include('classes.jar')
// rename('classes.jar', 'libGataSDK.jar')
}
task ___deleteJar(type: Delete){
delete 'outjar/libGataSDK.jar'
}
task __DebugeJar(type: Copy) {
delete 'outjar/libGataSDK.jar'
from('build/intermediates/compile_library_classes_jar/debug')
into('outjar')
include('classes.jar')
rename('classes.jar', 'libGataSDK.jar')
}