1
1
plugins {
2
- id ' com.android.library'
3
- id ' kotlin-android'
2
+ id " com.android.library"
3
+ id " kotlin-android"
4
4
id " org.jetbrains.dokka"
5
- id " com.github.dcendents.android- maven"
5
+ id ' maven-publish '
6
6
}
7
7
8
8
android {
9
- compileSdkVersion 30
10
- buildToolsVersion " 31.0.0"
9
+ compileSdkVersion 31
11
10
12
11
defaultConfig {
13
12
minSdkVersion 21
14
- targetSdkVersion 30
15
- versionCode 1
16
- versionName " 0.4.1"
17
-
18
- consumerProguardFiles " consumer-rules.pro"
19
- }
20
-
21
- buildTypes {
22
- release {
23
- minifyEnabled false
24
- proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
25
- }
26
13
}
27
14
compileOptions {
28
15
sourceCompatibility JavaVersion . VERSION_11
@@ -36,26 +23,46 @@ android {
36
23
dependencies {
37
24
38
25
// Kotlin
26
+ implementation " org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion "
39
27
40
28
// Flipper
41
- implementation deps. flipper_core
42
- implementation deps. flipper_soloader
43
- implementation deps. flipper_reflect
29
+ implementation " com.facebook.flipper:flipper:0.104.0"
30
+ implementation " com.facebook.soloader:soloader:0.10.1"
44
31
45
32
// Android
46
- implementation ' androidx.core:core-ktx:1.6.0'
47
- implementation ' androidx.appcompat:appcompat:1.3.1'
48
- implementation ' androidx.navigation:navigation-fragment-ktx:2.3.5'
49
- implementation ' androidx.navigation:navigation-ui-ktx:2.3.5'
33
+ implementation " androidx.core:core-ktx:1.6.0"
34
+ implementation " androidx.appcompat:appcompat:1.3.1"
35
+ implementation " androidx.navigation:navigation-fragment-ktx:2.3.5"
36
+ implementation " androidx.navigation:navigation-ui-ktx:2.3.5"
50
37
51
38
// Rx
52
39
implementation " io.reactivex.rxjava3:rxjava:3.0.12"
53
- implementation ' io.reactivex.rxjava3:rxandroid:3.0.0'
40
+ implementation " io.reactivex.rxjava3:rxandroid:3.0.0"
54
41
implementation " io.reactivex.rxjava3:rxkotlin:3.0.1"
55
42
56
- implementation " com.jakewharton.timber:timber:4.7.1"
43
+ // Debug
44
+ implementation " com.jakewharton.timber:timber:5.0.1"
57
45
58
46
// Test
59
- testImplementation deps . junit4
47
+ testImplementation " junit:junit:4.13.2 "
60
48
testImplementation " org.json:json:20180813"
49
+ }
50
+
51
+ // Because the components are created only during the afterEvaluate phase, you must
52
+ // configure your publications using the afterEvaluate() lifecycle method.
53
+ afterEvaluate {
54
+ publishing {
55
+ publications {
56
+ // Creates a Maven publication called "release".
57
+ release(MavenPublication ) {
58
+ // Applies the component for the release build variant.
59
+ from components. release
60
+
61
+ // You can then customize attributes of the publication as shown below.
62
+ groupId = ' fr.afaucogney.mobile.flipper'
63
+ artifactId = ' android-objects-lifecycle'
64
+ version = ' 0.5.1'
65
+ }
66
+ }
67
+ }
61
68
}
0 commit comments