Skip to content

Commit 693a8c1

Browse files
committed
Update libs
1 parent ffd4c00 commit 693a8c1

File tree

7 files changed

+25
-70
lines changed

7 files changed

+25
-70
lines changed

build.gradle

+5-11
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,19 @@
22

33
buildscript {
44
ext {
5-
kotlin_version = '1.3.72'
5+
kotlin_version = '1.4.30'
66
}
77
ext.versions = [
8-
'compileSdk' : 29,
9-
'minSdk' : 21,
10-
'targetSdk' : 29,
11-
'annotation' : '1.1.0',
12-
'appcompat' : '1.1.0',
13-
'constraintLayout': '1.1.3',
14-
'junit' : '4.13',
15-
'robolectric' : '4.3.1'
8+
'compileSdk': 29,
9+
'minSdk' : 21,
10+
'targetSdk' : 29,
1611
]
1712
repositories {
1813
google()
1914
jcenter()
2015
}
2116
dependencies {
22-
classpath 'com.android.tools.build:gradle:4.0.0'
17+
classpath 'com.android.tools.build:gradle:4.1.2'
2318
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2419
}
2520
}
@@ -28,7 +23,6 @@ allprojects {
2823
repositories {
2924
google()
3025
jcenter()
31-
maven { url 'https://jitpack.io' }
3226
}
3327
}
3428

gradle.properties

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,5 @@ org.gradle.jvmargs=-Xmx1536m
1515
# Android operating system, and which are packaged with your app's APK
1616
# https://developer.android.com/topic/libraries/support-library/androidx-rn
1717
android.useAndroidX=true
18-
# Automatically convert third-party libraries to use AndroidX
19-
android.enableJetifier=true
2018
# Kotlin code style for this project: "official" or "obsolete":
2119
kotlin.code.style=official
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri May 29 10:30:00 JST 2020
1+
#Wed Feb 24 17:00:00 JST 2021
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

sdk-example-java/build.gradle

+6-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ android {
1111
versionName "1.0"
1212

1313
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14-
1514
}
1615

1716
buildTypes {
@@ -32,14 +31,12 @@ repositories {
3231
}
3332

3433
dependencies {
35-
implementation fileTree(dir: 'libs', include: ['*.jar'])
36-
37-
implementation "androidx.appcompat:appcompat:$versions.appcompat"
38-
implementation "androidx.constraintlayout:constraintlayout:$versions.constraintLayout"
34+
implementation project(":studyplus-android-sdk")
3935

40-
implementation 'com.github.studyplus:Studyplus-Android-SDK:2.6.2'
36+
implementation "androidx.appcompat:appcompat:1.2.0"
37+
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
4138

42-
testImplementation "junit:junit:$versions.junit"
43-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
44-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
39+
testImplementation "junit:junit:4.13"
40+
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
41+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
4542
}

sdk-example-kt/build.gradle

+6-15
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
apply plugin: 'com.android.application'
2-
32
apply plugin: 'kotlin-android'
43

5-
apply plugin: 'kotlin-android-extensions'
6-
74
android {
85
compileSdkVersion versions.compileSdk
96
defaultConfig {
@@ -26,19 +23,13 @@ android {
2623
}
2724
}
2825

29-
repositories {
30-
mavenCentral()
31-
}
32-
3326
dependencies {
34-
implementation fileTree(include: ['*.jar'], dir: 'libs')
35-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
36-
implementation "androidx.appcompat:appcompat:$versions.appcompat"
37-
implementation "androidx.constraintlayout:constraintlayout:$versions.constraintLayout"
27+
implementation project(":studyplus-android-sdk")
3828

39-
implementation 'com.github.studyplus:Studyplus-Android-SDK:2.6.2'
29+
implementation "androidx.appcompat:appcompat:1.2.0"
30+
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
4031

41-
testImplementation "junit:junit:$versions.junit"
42-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
43-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
32+
testImplementation "junit:junit:4.13"
33+
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
34+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
4435
}

studyplus-android-sdk/build.gradle

+6-10
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ android {
77
minSdkVersion versions.minSdk
88
targetSdkVersion versions.targetSdk
99

10-
consumerProguardFiles 'lib-proguard-rules.txt'
11-
1210
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1311
}
1412

@@ -38,15 +36,13 @@ android {
3836
}
3937

4038
dependencies {
41-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
42-
43-
implementation "androidx.annotation:annotation:$versions.annotation"
39+
implementation "androidx.annotation:annotation:1.1.0"
4440

45-
def okhttp = "4.7.2"
46-
implementation "com.squareup.okhttp3:okhttp:$okhttp"
41+
implementation platform("com.squareup.okhttp3:okhttp-bom:4.9.1")
42+
implementation "com.squareup.okhttp3:okhttp"
4743

48-
testImplementation "junit:junit:$versions.junit"
49-
testImplementation "org.robolectric:robolectric:$versions.robolectric"
44+
testImplementation "junit:junit:4.13"
45+
testImplementation "org.robolectric:robolectric:4.3.1"
5046
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
51-
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp"
47+
testImplementation "com.squareup.okhttp3:mockwebserver"
5248
}

studyplus-android-sdk/lib-proguard-rules.txt

-21
This file was deleted.

0 commit comments

Comments
 (0)