File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11apply plugin : ' com.android.application'
22apply plugin : ' kotlin-android'
3- apply plugin : ' kotlin-android-extensions'
43
54android {
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
3233dependencies {
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}
Original file line number Diff line number Diff line change 1- // Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
31buildscript {
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
1812allprojects {
1913 repositories {
20- jcenter()
2114 google()
15+ mavenCentral()
2216 }
2317}
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22apply plugin : ' kotlin-android'
3- apply plugin : ' kotlin-android-extensions'
43
54
65android {
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
3635dependencies {
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}
You can’t perform that action at this time.
0 commit comments