File tree 3 files changed +25
-19
lines changed
3 files changed +25
-19
lines changed Original file line number Diff line number Diff line change 1
1
name : Android CI
2
-
3
2
on : [push]
4
-
5
3
jobs :
6
4
build :
7
-
8
5
runs-on : ubuntu-latest
9
-
10
6
steps :
11
7
- uses : actions/checkout@v1
12
8
- name : set up JDK 1.8
Original file line number Diff line number Diff line change @@ -9,8 +9,11 @@ apply plugin: 'kotlin-kapt'
9
9
def AAVersion = ' 4.5.2'
10
10
def SupportLibVersion = ' 28.0.0'
11
11
12
+ File propFile = new File (" E:/资料/jks/autojs-app/sign.properties" );
12
13
Properties properties = new Properties ()
13
- properties. load(new InputStreamReader (new FileInputStream (" E:/资料/jks/autojs-app/sign.properties" ), Charset . forName(" utf-8" )))
14
+ if (propFile. exists()){
15
+ properties. load(new InputStreamReader (new FileInputStream (propFile), Charset . forName(" utf-8" )))
16
+ }
14
17
15
18
configurations. all {
16
19
resolutionStrategy {
@@ -37,15 +40,15 @@ android {
37
40
]
38
41
}
39
42
}
40
-
41
-
42
43
}
43
44
signingConfigs {
44
- release {
45
- keyAlias properties[' keyAlias' ]
46
- keyPassword properties[' keyPassword' ]
47
- storeFile file(properties[' storeFile' ])
48
- storePassword properties[' storePassword' ]
45
+ if (propFile. exists()) {
46
+ release {
47
+ keyAlias properties[' keyAlias' ]
48
+ keyPassword properties[' keyPassword' ]
49
+ storeFile file(properties[' storeFile' ])
50
+ storePassword properties[' storePassword' ]
51
+ }
49
52
}
50
53
}
51
54
buildTypes {
Original file line number Diff line number Diff line change 1
1
import groovy.json.JsonSlurper
2
+
2
3
// Top-level build file where you can add configuration options common to all sub-projects/modules.
3
4
buildscript {
4
- ext. kotlin_version = ' 1.3.72 '
5
+ ext. kotlin_version = ' 1.4.10 '
5
6
repositories {
6
7
mavenLocal()
7
- mavenCentral()
8
+ maven { url ' https://maven.aliyun.com/repository/central' }
9
+ maven { url " https://jitpack.io" }
10
+ maven { url ' http://120.25.164.233:8081/nexus/content/groups/public/' }
11
+ google { url ' https://maven.aliyun.com/repository/google' }
8
12
google()
13
+ jcenter { url ' https://maven.aliyun.com/repository/public' }
9
14
jcenter()
10
15
}
11
16
dependencies {
@@ -21,12 +26,14 @@ buildscript {
21
26
allprojects {
22
27
repositories {
23
28
mavenLocal()
24
- jcenter()
25
- maven {
26
- url " https://jitpack.io"
27
- }
28
- google()
29
+ maven { url ' https://maven.aliyun.com/repository/central' }
30
+ maven { url " https://jitpack.io" }
29
31
maven { url ' http://120.25.164.233:8081/nexus/content/groups/public/' }
32
+ google { url ' https://maven.aliyun.com/repository/google' }
33
+ google()
34
+ jcenter { url ' https://maven.aliyun.com/repository/public' }
35
+ jcenter()
36
+
30
37
}
31
38
}
32
39
You can’t perform that action at this time.
0 commit comments