File tree 4 files changed +14
-15
lines changed
4 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
build :
11
11
name : Setup Environment and build
12
- runs-on : self-hosted
12
+ runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Checkout the code to specific branch
15
- uses : actions/checkout@v2
15
+ uses : actions/checkout@v3
16
16
17
17
- name : Set up JDK
18
- uses : actions/setup-java@v2
18
+ uses : actions/setup-java@v3
19
19
with :
20
- distribution : ' zulu'
21
20
java-version : ' 11'
22
-
23
- - name : Setup Android SDK
24
- uses : android-actions/setup-android@v2
21
+ distribution : ' temurin'
22
+ cache : gradle
25
23
26
24
- name : Make gradlew executable
27
- run : chmod +x ./gradlew
28
-
29
- - name : Compile code
30
- run : ./gradlew assembleDebug
25
+ run : chmod +x gradlew
31
26
32
27
- name : Run Kotlin Linter
33
28
run : ./gradlew ktlintCheck
36
31
run : ./gradlew pmd
37
32
38
33
- name : Run Checkstyle
39
- run : ./gradlew checkstyle
34
+ run : ./gradlew checkstyle
35
+
36
+ - name : Compile code
37
+ run : ./gradlew assembleDebug
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ local.properties
10
10
* . * ~
11
11
12
12
# gradle env props
13
- gradle.properties
14
13
secrets.properties
15
14
16
15
# built application files
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def getMasterCommitCount = { ->
30
30
}
31
31
return Integer . parseInt(stdout. toString(). trim())
32
32
} catch (ignored) {
33
- return -1 ;
33
+ return 1
34
34
}
35
35
}
36
36
@@ -50,7 +50,7 @@ def getVersionName = { ->
50
50
}
51
51
return stdout. toString(). trim()
52
52
} catch (ignored) {
53
- return null ;
53
+ return null
54
54
}
55
55
}
56
56
Original file line number Diff line number Diff line change
1
+ android.useAndroidX =true
2
+ android.enableJetifier =true
You can’t perform that action at this time.
0 commit comments