File tree Expand file tree Collapse file tree 4 files changed +11
-20
lines changed Expand file tree Collapse file tree 4 files changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,9 @@ plugins {
39
39
/* * Version Settings, loaded from file `version.properties` */
40
40
def version = new Properties ()
41
41
version. load(new FileInputStream (rootProject. file(' version.properties' )))
42
- project. ext. set(' applicationId' , version[' applicationId' ])
43
42
project. ext. set(' versionName' , version[' versionName' ])
44
43
project. ext. set(' versionCode' , new Integer (version[' versionCode' ]))
45
44
46
- /* * TODO: better should load the versionName from git tag */
47
-
48
45
/* JitPack: use tag as versionName. */
49
46
if (System . env. JITPACK ) {
50
47
project. ext. set(' versionName' , System . env. VERSION )
Original file line number Diff line number Diff line change @@ -5,21 +5,24 @@ plugins {
5
5
6
6
android {
7
7
namespace ' io.syslogic.github.api'
8
+ buildToolsVersion = ' 34.0.0'
8
9
compileSdk 34
9
-
10
10
defaultConfig {
11
11
minSdk 22
12
12
targetSdk 34
13
+ setProperty(" archivesBaseName" , " androidx_github_" + versionName)
13
14
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
14
15
consumerProguardFiles " consumer-rules.pro"
15
16
16
17
javaCompileOptions {
17
18
annotationProcessorOptions {
18
- arguments = [" room.schemaLocation" : " $rootDir /schema" . toString()]
19
+ arguments = [ " room.schemaLocation" : " $rootDir /schema" . toString() ]
19
20
}
20
21
}
21
22
}
22
23
24
+ sourceSets. main. java. srcDirs = [ " src/main/java" ]
25
+
23
26
compileOptions {
24
27
sourceCompatibility JavaVersion . VERSION_17
25
28
targetCompatibility JavaVersion . VERSION_17
@@ -104,14 +107,14 @@ tasks.register('javadoc', Javadoc) {
104
107
// javadoc: warning - The code being documented uses modules but the packages
105
108
// defined in https://developer.android.com/reference/ are in the unnamed module.
106
109
options. links " https://docs.oracle.com/en/java/javase/17/docs/api/"
107
- options. linksOffline " https://developer.android.com/reference" , " ${ android.sdkDirectory} /docs/reference"
110
+ // options.linksOffline "https://developer.android.com/reference", "${android.sdkDirectory}/docs/reference"
108
111
options. linkSource true
109
112
options. author true
110
113
111
114
doFirst {
112
115
113
116
// extract AAR files
114
- configurations. implementation. filter { it. name. endsWith(' .aar' ) }. each { aar ->
117
+ configurations. named( " implementation" ) . filter { it. name. endsWith(' .aar' ) }. each { aar ->
115
118
copy {
116
119
from zipTree(aar)
117
120
include " **/classes.jar"
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ plugins {
5
5
}
6
6
7
7
android {
8
-
8
+ namespace ' io.syslogic.github'
9
+ buildToolsVersion = ' 34.0.0'
9
10
compileSdk 34
10
11
defaultConfig {
11
- applicationId rootProject. ext. get(' applicationId' )
12
- namespace rootProject. ext. get(' applicationId' )
12
+ applicationId ' io.syslogic.github'
13
13
versionName rootProject. ext. get(' versionName' )
14
14
versionCode rootProject. ext. get(' versionCode' )
15
15
manifestPlaceholders = [ accessToken : " " ]
@@ -19,12 +19,6 @@ android {
19
19
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
20
20
testBuildType " debug"
21
21
multiDexEnabled true
22
-
23
- javaCompileOptions {
24
- annotationProcessorOptions {
25
- arguments = [" room.schemaLocation" : " $rootDir /schema" . toString()]
26
- }
27
- }
28
22
}
29
23
30
24
compileOptions {
@@ -123,9 +117,7 @@ dependencies {
123
117
androidTestImplementation " androidx.fragment:fragment-testing:$fragment_version "
124
118
implementation " androidx.fragment:fragment:$fragment_version "
125
119
126
- // Room
127
- annotationProcessor " androidx.room:room-compiler:$room_version "
128
- testImplementation " androidx.room:room-testing:$room_version "
120
+ // Room Runtime
129
121
implementation " androidx.room:room-runtime:$room_version "
130
122
131
123
// Retrofit2
Original file line number Diff line number Diff line change 1
- applicationId = io.syslogic.github
2
1
versionName = 1.0.0
3
2
versionCode = 1
You can’t perform that action at this time.
0 commit comments