Skip to content

Commit 1e5c988

Browse files
Ruslan AlievRuslan Aliev
authored andcommitted
update dependencies
1 parent 1eefeb8 commit 1e5c988

File tree

8 files changed

+63
-79
lines changed

8 files changed

+63
-79
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
android:roundIcon="@mipmap/ic_launcher_round"
1313
android:supportsRtl="true"
1414
android:theme="@style/AppTheme">
15-
<activity android:name=".MainActivity">
15+
<activity android:name=".MainActivity"
16+
android:exported="true">
1617
<intent-filter>
1718
<action android:name="android.intent.action.MAIN"/>
1819

@@ -21,4 +22,4 @@
2122
</activity>
2223
</application>
2324

24-
</manifest>
25+
</manifest>

build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ buildscript {
44
apply from: rootProject.file('gradle/versions.gradle')
55
repositories {
66
google()
7-
jcenter()
8-
7+
mavenCentral()
98
}
109
dependencies {
11-
classpath 'com.android.tools.build:gradle:4.1.3'
10+
classpath 'com.android.tools.build:gradle:7.0.4'
1211
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
1312
// NOTE: Do not place your application dependencies here; they belong
1413
// in the individual module build.gradle files
@@ -17,9 +16,8 @@ buildscript {
1716

1817
allprojects {
1918
repositories {
20-
mavenLocal()
2119
google()
22-
jcenter()
20+
mavenCentral()
2321

2422
}
2523
}

editorjskit/build.gradle

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.github.panpf.bintray-publish'
32
apply plugin: 'kotlin-android'
3+
apply plugin: 'maven-publish'
44

55
buildscript {
66
repositories {
7-
mavenLocal()
8-
jcenter()
7+
mavenCentral()
98
}
109
dependencies {
11-
classpath "com.github.panpf.bintray-publish:bintray-publish:${versions.novoda_bintray_plugin}"
1210
}
1311
}
1412

@@ -33,16 +31,6 @@ android {
3331
lintOptions {
3432
warning 'InvalidPackage'
3533
}
36-
37-
compileOptions {
38-
sourceCompatibility JavaVersion.VERSION_1_8
39-
targetCompatibility JavaVersion.VERSION_1_8
40-
}
41-
42-
kotlinOptions {
43-
jvmTarget = "1.8"
44-
}
45-
4634
}
4735

4836
dependencies {
@@ -55,8 +43,15 @@ dependencies {
5543
testImplementation "junit:junit:${versions.junit}"
5644
}
5745

58-
apply from: rootProject.file("gradle/publish.gradle")
59-
publish {
60-
repoName = 'EditorJSKit'
61-
artifactId = 'ejkit'
46+
afterEvaluate {
47+
publishing {
48+
publications {
49+
release(MavenPublication) {
50+
from components.release
51+
artifactId "ejkit"
52+
groupId "work.upstarts.editorjskit"
53+
version "${versions.publishVersion}"
54+
}
55+
}
56+
}
6257
}

editorjskit/src/main/java/work/upstarts/editorjskit/environment/Extensions.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ fun ImageView.loadImage(url: String?, data: EJImageData) {
4242
}
4343

4444
val Int.dp: Int
45-
get() = (this * Resources.getSystem().displayMetrics.density + 0.5f).toInt()
46-
47-
val Int.sp: Int
48-
get() = (this * Resources.getSystem().displayMetrics.density + 0.5f).toInt()
45+
get() = (this * Resources.getSystem().displayMetrics.density).toInt()
4946

5047
fun Spannable.applyThemeForUrlSpans(theme: EJStyle?, context: Context) {
5148
for (u in getSpans(0, length, URLSpan::class.java)) {

gradle/versions.gradle

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
ext.versions = [
2-
compileSdk : 29,
3-
targetSdk : 29,
2+
compileSdk : 31,
3+
targetSdk : 31,
44
minSdk : 21,
5-
kotlin : '1.4.32',
6-
androidx_appcompat : '1.2.0',
7-
androidx_constraint : '2.0.4',
8-
androidx_recyclerview: '1.1.0',
9-
androidx_core_ktx : '1.3.2',
5+
kotlin : '1.6.21',
6+
androidx_appcompat : '1.4.1',
7+
androidx_constraint : '2.1.4',
8+
androidx_recyclerview: '1.2.1',
9+
androidx_core_ktx : '1.7.0',
1010
junit : '4.13.2',
11-
gson : '2.8.6',
12-
adapter_delegates : '4.3.0',
13-
glide : '4.12.0',
11+
gson : '2.9.0',
12+
moshi : '1.13.0',
13+
adapter_delegates : '4.3.2',
14+
glide : '4.13.2',
1415
novoda_bintray_plugin: '1.0.0',
1516
publishVersion : '2.0.0'
1617
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Wed Apr 07 13:57:06 MSK 2021
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

gsonparser/build.gradle

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.github.panpf.bintray-publish'
32
apply plugin: 'kotlin-android'
3+
apply plugin: 'maven-publish'
4+
45

56
buildscript {
67
repositories {
7-
mavenLocal()
8-
jcenter()
8+
mavenCentral()
99
}
1010
dependencies {
11-
classpath "com.github.panpf.bintray-publish:bintray-publish:${versions.novoda_bintray_plugin}"
1211
}
1312
}
1413

@@ -33,26 +32,22 @@ android {
3332
lintOptions {
3433
warning 'InvalidPackage'
3534
}
36-
37-
compileOptions {
38-
sourceCompatibility JavaVersion.VERSION_1_8
39-
targetCompatibility JavaVersion.VERSION_1_8
40-
}
41-
42-
kotlinOptions {
43-
jvmTarget = "1.8"
44-
}
45-
4635
}
4736

4837
dependencies {
49-
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
5038
api "com.google.code.gson:gson:${versions.gson}"
5139
api project(":editorjskit")
5240
}
5341

54-
apply from: rootProject.file("gradle/publish.gradle")
55-
publish {
56-
repoName = 'EditorJSKit-Gson'
57-
artifactId = 'ejkit-gson'
42+
afterEvaluate {
43+
publishing {
44+
publications {
45+
release(MavenPublication) {
46+
from components.release
47+
artifactId "ejkit-gson"
48+
groupId "work.upstarts.editorjskit"
49+
version "${versions.publishVersion}"
50+
}
51+
}
52+
}
5853
}

moshiparser/build.gradle

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.github.panpf.bintray-publish'
32
apply plugin: 'kotlin-android'
3+
apply plugin: 'maven-publish'
4+
45

56
buildscript {
67
repositories {
7-
mavenLocal()
8-
jcenter()
8+
mavenCentral()
99
}
1010
dependencies {
11-
classpath "com.github.panpf.bintray-publish:bintray-publish:${versions.novoda_bintray_plugin}"
1211
}
1312
}
1413

@@ -29,29 +28,27 @@ android {
2928
minifyEnabled false
3029
}
3130
}
32-
33-
compileOptions {
34-
sourceCompatibility JavaVersion.VERSION_1_8
35-
targetCompatibility JavaVersion.VERSION_1_8
36-
}
3731
}
3832

3933
dependencies {
40-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
41-
4234
//Moshi
43-
implementation("com.squareup.moshi:moshi-kotlin:1.11.0")
44-
implementation "com.squareup.moshi:moshi-adapters:1.11.0"
35+
implementation "com.squareup.moshi:moshi-kotlin:${versions.moshi}"
36+
implementation "com.squareup.moshi:moshi-adapters:${versions.moshi}"
4537

4638
api project(":editorjskit")
4739
testImplementation 'junit:junit:4.13.2'
4840
}
4941

50-
sourceCompatibility = "1.7"
51-
targetCompatibility = "1.7"
5242

53-
apply from: rootProject.file("gradle/publish.gradle")
54-
publish {
55-
repoName = 'EditorJSKit-Moshi'
56-
artifactId = 'ejkit-moshi'
57-
}
43+
afterEvaluate {
44+
publishing {
45+
publications {
46+
release(MavenPublication) {
47+
from components.release
48+
artifactId "ejkit-moshi"
49+
groupId "work.upstarts.editorjskit"
50+
version "${versions.publishVersion}"
51+
}
52+
}
53+
}
54+
}

0 commit comments

Comments
 (0)