@@ -2,34 +2,8 @@ apply plugin: 'com.android.library'
2
2
// apply plugin: 'com.novoda.bintray-release'
3
3
apply from : ' ../androidx_compat.gradle'
4
4
5
- /*
6
- ext {
7
- bintrayRepo = 'maven'
8
- bintrayName = 'android-nestedscroll' // Has to be same as your library module name
9
-
10
- publishedGroupId = 'com.heaven7.android.scroll'
11
- libraryName = 'android-nestedscroll'
12
- artifact = 'android-nestedscroll' // Has to be same as your library module name
13
-
14
- libraryDescription = 'Android Library to make handle nested scrolling easilier.'
15
-
16
- // Your github repo link
17
- siteUrl = 'https://github.com/LightSun/Android-sticky-navigation-layout'
18
- gitUrl = 'https://github.com/LightSun/Android-sticky-navigation-layout.git'
19
- githubRepository= 'LightSun/Android-sticky-navigation-layout'
20
-
21
- libraryVersion = '1.0.2'
22
-
23
- developerId = 'Heaven7'
24
- developerName = 'Chenjun'
25
- developerEmail = 'donshine723@gmail.com'
26
-
27
- licenseName = 'The Apache Software License, Version 2.0'
28
- licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
29
- allLicenses = ["Apache-2.0"]
30
- }
31
- */
32
-
5
+ group = ' com.github.LightSun.Android-sticky-navigation-layout'
6
+ version = library_version
33
7
34
8
android {
35
9
compileSdkVersion 28
@@ -53,27 +27,41 @@ android {
53
27
checkReleaseBuilds false
54
28
}
55
29
}
30
+ // ------------ multi lib >>> ------
31
+ task sourcesJar (type : Jar ) {
32
+ // classifier = 'sources'
33
+ getArchiveClassifier(). set(' sources' )
34
+ from android. sourceSets. main. javaDirectories
35
+ }
36
+ artifacts {
37
+ archives sourcesJar
38
+ }
39
+ if (android. productFlavors. size() > 0 ) {
40
+ android. libraryVariants. all { variant ->
41
+ if (variant. name. toLowerCase(). contains(" debug" )) {
42
+ return
43
+ }
44
+
45
+ def bundleTask = tasks[" bundle${ variant.name.capitalize()} " ]
46
+
47
+ artifacts {
48
+ archives(bundleTask. archivePath) {
49
+ classifier variant. flavorName
50
+ builtBy bundleTask
51
+ name = project. name
52
+ }
53
+ }
56
54
57
- /* publish {
58
- userOrg = 'lightsun'
59
- groupId = 'com.heaven7.android.scroll'
60
- artifactId = 'android-nestedscroll'
61
- desc = 'Android Library to make handle nested scrolling easilier.'
62
- website = 'https://github.com/LightSun/Android-sticky-navigation-layout'
63
- publishVersion = android.defaultConfig.versionName
64
- }*/
55
+ }
56
+ }
57
+ // ------------ multi lib <<< ------
65
58
66
59
dependencies {
67
60
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
68
61
testImplementation ' junit:junit:4.12'
69
62
// implementation 'com.android.support:appcompat-v7:26.1.0'
70
63
}
71
64
72
- // apply from: 'bintrayUpload.gradle'
73
-
74
- // Place it at the end of the file
75
- // apply from: 'installv1.gradle'
76
- // apply from: 'bintrayv1.gradle'
77
65
task javadoc (type : Javadoc ) {
78
66
options. encoding = " utf-8"
79
67
}
0 commit comments