Skip to content

Commit 9ff63d5

Browse files
authored
Merge pull request svga#443 from knownitwhy/master
fix: 更新 kotlin-stdlib 和 wire-runtime 版本, 避免安全漏洞风险
2 parents 9456d58 + 897d800 commit 9ff63d5

File tree

3 files changed

+12
-24
lines changed

3 files changed

+12
-24
lines changed

app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
3-
apply plugin: 'kotlin-android-extensions'
43

54
android {
65
compileSdkVersion 28
@@ -17,8 +16,6 @@ android {
1716
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1817
}
1918
}
20-
productFlavors {
21-
}
2219
packagingOptions {
2320
exclude 'META-INF/ASL2.0'
2421
exclude 'META-INF/LICENSE'
@@ -27,12 +24,15 @@ android {
2724
exclude 'META-INF/LICENSE.txt'
2825
exclude 'META-INF/MANIFEST.MF'
2926
}
27+
compileOptions {
28+
sourceCompatibility JavaVersion.VERSION_1_8
29+
targetCompatibility JavaVersion.VERSION_1_8
30+
}
3031
}
3132

3233
dependencies {
3334
implementation fileTree(include: ['*.jar'], dir: 'libs')
3435
implementation 'com.android.support:appcompat-v7:28.0.0'
3536
implementation project(':library')
36-
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
37-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
37+
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
3838
}

build.gradle

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
31
buildscript {
4-
ext.kotlin_version = '1.3.50'
52
repositories {
63
google()
7-
jcenter()
4+
mavenCentral()
85
}
96
dependencies {
107
classpath 'com.android.tools.build:gradle:4.0.0'
11-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12-
13-
// NOTE: Do not place your application dependencies here; they belong
14-
// in the individual module build.gradle files
8+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20"
159
}
1610
}
1711

1812
allprojects {
1913
repositories {
20-
jcenter()
2114
google()
15+
mavenCentral()
2216
}
2317
}

library/build.gradle

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
3-
apply plugin: 'kotlin-android-extensions'
43

54

65
android {
76
compileSdkVersion 28
87
defaultConfig {
98
minSdkVersion 14
109
targetSdkVersion 28
11-
versionCode 1
12-
versionName "1.0"
1310
}
1411
compileOptions {
1512
kotlinOptions.freeCompilerArgs += ['-module-name', "com.opensource.svgaplayer"]
@@ -20,7 +17,9 @@ android {
2017
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2118
}
2219
}
23-
productFlavors {
20+
compileOptions {
21+
sourceCompatibility JavaVersion.VERSION_1_8
22+
targetCompatibility JavaVersion.VERSION_1_8
2423
}
2524
packagingOptions {
2625
exclude 'META-INF/ASL2.0'
@@ -34,10 +33,5 @@ android {
3433

3534

3635
dependencies {
37-
implementation fileTree(include: ['*.jar'], dir: 'libs')
38-
implementation 'com.squareup.wire:wire-runtime:2.3.0-RC1'
39-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
40-
}
41-
repositories {
42-
mavenCentral()
36+
implementation 'com.squareup.wire:wire-runtime:4.4.1'
4337
}

0 commit comments

Comments
 (0)