Skip to content

Commit e10229d

Browse files
author
程书伦
committed
升级插件
1 parent e75177c commit e10229d

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

.github/workflows/android.yml

-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Android CI
2-
32
on: [push]
4-
53
jobs:
64
build:
7-
85
runs-on: ubuntu-latest
9-
106
steps:
117
- uses: actions/checkout@v1
128
- name: set up JDK 1.8

app/build.gradle

+11-8
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ apply plugin: 'kotlin-kapt'
99
def AAVersion = '4.5.2'
1010
def SupportLibVersion = '28.0.0'
1111

12+
File propFile =new File("E:/资料/jks/autojs-app/sign.properties");
1213
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+
}
1417

1518
configurations.all {
1619
resolutionStrategy {
@@ -37,15 +40,15 @@ android {
3740
]
3841
}
3942
}
40-
41-
4243
}
4344
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+
}
4952
}
5053
}
5154
buildTypes {

build.gradle

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import groovy.json.JsonSlurper
2+
23
// Top-level build file where you can add configuration options common to all sub-projects/modules.
34
buildscript {
4-
ext.kotlin_version = '1.3.72'
5+
ext.kotlin_version = '1.4.10'
56
repositories {
67
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' }
812
google()
13+
jcenter { url 'https://maven.aliyun.com/repository/public' }
914
jcenter()
1015
}
1116
dependencies {
@@ -21,12 +26,14 @@ buildscript {
2126
allprojects {
2227
repositories {
2328
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" }
2931
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+
3037
}
3138
}
3239

0 commit comments

Comments
 (0)