Skip to content

Commit e06a534

Browse files
Bump version kotlin, gradle, android sdk (#350)
Co-authored-by: Sergey Sozinov <[email protected]>
1 parent 3446eb2 commit e06a534

File tree

11 files changed

+109
-111
lines changed

11 files changed

+109
-111
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,36 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616

17-
- name: Set up JDK 11
18-
uses: actions/setup-java@v1
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v3
1919
with:
20-
java-version: 11
20+
distribution: 'temurin'
21+
java-version: '17'
22+
cache: 'gradle'
2123

2224
- name: Setup Android SDK
2325
uses: android-actions/setup-android@v2
2426

2527
- name: lint check
26-
uses: eskatos/gradle-command-action@v1
27-
with:
28-
gradle-version: 6.8
29-
arguments: lintDebug
28+
run: ./gradlew --no-daemon lintDebug
3029

3130
unit:
3231
runs-on: ubuntu-latest
3332
steps:
3433
- uses: actions/checkout@v2
3534

36-
- name: Set up JDK 11
37-
uses: actions/setup-java@v1
35+
- name: Set up JDK 17
36+
uses: actions/setup-java@v3
3837
with:
39-
java-version: 11
38+
distribution: 'temurin'
39+
java-version: '17'
40+
cache: 'gradle'
4041

4142
- name: Setup Android SDK
4243
uses: android-actions/setup-android@v2
4344

4445
- name: unit tests
45-
uses: eskatos/gradle-command-action@v1
46-
with:
47-
gradle-version: 6.8
48-
arguments: testDebugUnitTest --stacktrace
46+
run: ./gradlew --no-daemon --stacktrace testDebugUnitTest
4947

5048
- name: test report
5149
uses: asadmansr/[email protected]
@@ -56,13 +54,12 @@ jobs:
5654
steps:
5755
- uses: actions/checkout@v2
5856

59-
- name: Set up JDK 11
60-
uses: actions/setup-java@v1
57+
- name: Set up JDK 17
58+
uses: actions/setup-java@v3
6159
with:
62-
java-version: 11
60+
distribution: 'temurin'
61+
java-version: '17'
62+
cache: 'gradle'
6363

6464
- name: build project
65-
uses: eskatos/gradle-command-action@v1
66-
with:
67-
gradle-version: 6.8
68-
arguments: assembleDebug
65+
run: ./gradlew --no-daemon assembleDebug

.github/workflows/publish.yml

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,65 +15,64 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717

18-
- name: Set up JDK 11
19-
uses: actions/setup-java@v1
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v3
2020
with:
21-
java-version: 11
21+
distribution: 'temurin'
22+
java-version: '17'
23+
cache: 'gradle'
2224

2325
- name: Setup Android SDK
2426
uses: android-actions/setup-android@v2
2527

2628
- name: lint check
27-
uses: eskatos/gradle-command-action@v1
28-
with:
29-
gradle-version: 6.8
30-
arguments: check
29+
run: ./gradlew --no-daemon check
3130

3231
unit:
3332
runs-on: ubuntu-latest
3433
steps:
3534
- uses: actions/checkout@v2
3635

37-
- name: Set up JDK 11
38-
uses: actions/setup-java@v1
36+
- name: Set up JDK 17
37+
uses: actions/setup-java@v3
3938
with:
40-
java-version: 11
39+
distribution: 'temurin'
40+
java-version: '17'
41+
cache: 'gradle'
4142

4243
- name: Setup Android SDK
4344
uses: android-actions/setup-android@v2
4445

4546
- name: unit tests
46-
uses: eskatos/gradle-command-action@v1
47-
with:
48-
gradle-version: 6.8
49-
arguments: test testDebugUnitTest
47+
run: ./gradlew --no-daemon testDebugLocalUnitTest
5048

5149
build:
5250
needs: [unit, lint]
5351
runs-on: ubuntu-latest
5452
steps:
5553
- uses: actions/checkout@v2
5654

57-
- name: Set up JDK 11
58-
uses: actions/setup-java@v1
55+
- name: Set up JDK 17
56+
uses: actions/setup-java@v3
5957
with:
60-
java-version: 11
58+
distribution: 'temurin'
59+
java-version: '17'
60+
cache: 'gradle'
6161

6262
- name: build project
63-
uses: eskatos/gradle-command-action@v1
64-
with:
65-
gradle-version: 6.8
66-
arguments: build assembleDebug
63+
run: ./gradlew --no-daemon assembleDebug
6764

6865
publish:
6966
needs: [build]
7067
runs-on: ubuntu-latest
7168
steps:
7269
- uses: actions/checkout@v1
73-
- name: Set up JDK 11
74-
uses: actions/setup-java@v1
70+
- name: Set up JDK 17
71+
uses: actions/setup-java@v3
7572
with:
76-
java-version: 11
73+
distribution: 'temurin'
74+
java-version: '17'
75+
cache: 'gradle'
7776

7877
- name: Prepare to publish
7978
run: |
@@ -95,10 +94,7 @@ jobs:
9594
run: ./git-release.sh "${{secrets.GITHUBACCESSTOKEN}}" "${{secrets.GITHUBUSER}}"
9695

9796
- name: Publish to Sonatype
98-
uses: eskatos/gradle-command-action@v1
99-
with:
100-
gradle-version: 6.8
101-
arguments: test publish -PsonatypeUsername=${{secrets.OSSRHUSERNAME}} -PsonatypePassword=${{secrets.OSSRHPASSWORD}}
97+
run: ./gradlew --no-daemon publish -PsonatypeUsername=${{secrets.OSSRHUSERNAME}} -PsonatypePassword=${{secrets.OSSRHPASSWORD}}
10298

10399
- name: Job status notification
104100
uses: rtCamp/action-slack-notify@v2

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
ext.kotlin_version = "1.6.21"
3+
ext.kotlin_version = "1.8.21"
44
repositories {
55
google()
66
mavenCentral()
77
maven { url("https://plugins.gradle.org/m2/") }
88
maven { url("https://developer.huawei.com/repo/") }
99
}
1010
dependencies {
11-
classpath "com.android.tools.build:gradle:4.2.2"
11+
classpath "com.android.tools.build:gradle:7.4.2"
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1313
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.10.1"
1414
classpath 'com.google.gms:google-services:4.3.10'

dependencies.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ ext {
1313
kotlinx_coroutines_android: 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0',
1414
volley: 'com.android.volley:volley:1.2.1',
1515
gson: 'com.google.code.gson:gson:2.8.7',
16-
room: 'androidx.room:room-runtime:2.4.1',
17-
room_ktx: 'androidx.room:room-ktx:2.4.1',
18-
room_compiler: 'androidx.room:room-compiler:2.4.1',
16+
room: 'androidx.room:room-runtime:2.5.1',
17+
room_ktx: 'androidx.room:room-ktx:2.5.1',
18+
room_compiler: 'androidx.room:room-compiler:2.5.1',
1919
work_manager: 'androidx.work:work-runtime-ktx:2.7.1',
2020
androidx_lifecycle: 'androidx.lifecycle:lifecycle-process:2.3.1',
2121
hms_push: 'com.huawei.hms:push:6.5.0.300',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Mon Nov 07 16:21:11 YEKT 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

mindbox-firebase/gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
ARTIFACT_ID=mindbox-firebase
22
ARTIFACT_NAME=Mindbox Firebase Push SDK
3-
MIN_SDK_VERSION=16
3+
MIN_SDK_VERSION=16
4+
android.disableAutomaticComponentCreation=true

mindbox-huawei/gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
ARTIFACT_ID=mindbox-huawei
22
ARTIFACT_NAME=Mindbox Huawei Push SDK
3-
MIN_SDK_VERSION=17
3+
MIN_SDK_VERSION=17
4+
android.disableAutomaticComponentCreation=true

modulesCommon.gradle

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@ apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-kapt'
44
apply plugin: 'org.jetbrains.dokka'
5-
apply plugin: 'maven'
65
apply plugin: 'signing'
76
apply plugin: 'maven-publish'
87

98
group = 'com.github.mindbox-moscow'
10-
apply plugin: 'com.github.dcendents.android-maven'
119

1210
android {
13-
compileSdkVersion 31
14-
buildToolsVersion "29.0.3"
11+
compileSdkVersion 33
12+
buildToolsVersion "33.0.2"
1513

1614
defaultConfig {
1715
minSdkVersion 19
18-
targetSdkVersion 31
16+
targetSdkVersion 33
1917
versionCode 1
2018
multiDexEnabled true
2119
versionName '"' + SDK_VERSION_NAME + '"'
@@ -57,61 +55,63 @@ android {
5755
from android.sourceSets.main.java.srcDirs
5856
}
5957

60-
afterEvaluate {
61-
publishing {
62-
publications {
63-
release(MavenPublication) {
64-
from components.release
65-
artifact androidSourcesJar
66-
groupId = 'cloud.mindbox'
67-
artifactId = ARTIFACT_ID
68-
version = SDK_VERSION_NAME
69-
pom {
70-
name = ARTIFACT_NAME
71-
description = 'Test release'
72-
url = 'https://github.com/mindbox-moscow/android-sdk'
73-
licenses {
74-
license {
75-
name = 'The Mindbox License'
76-
url = 'https://github.com/mindbox-moscow/android-sdk/blob/master/LICENSE.md'
77-
}
78-
}
79-
developers {
80-
developer {
81-
id = 'mindbox'
82-
name = 'Petr Nikitin'
83-
84-
}
58+
}
59+
60+
afterEvaluate {
61+
apply plugin: 'maven-publish'
62+
publishing {
63+
publications {
64+
release(MavenPublication) {
65+
from components.release
66+
artifact androidSourcesJar
67+
groupId = 'cloud.mindbox'
68+
artifactId = ARTIFACT_ID
69+
version = SDK_VERSION_NAME
70+
pom {
71+
name = ARTIFACT_NAME
72+
description = 'Test release'
73+
url = 'https://github.com/mindbox-moscow/android-sdk'
74+
licenses {
75+
license {
76+
name = 'The Mindbox License'
77+
url = 'https://github.com/mindbox-moscow/android-sdk/blob/master/LICENSE.md'
8578
}
86-
scm {
87-
connection = 'scm:https://github.com/mindbox-moscow/android-sdk.git'
88-
developerConnection = 'scm:git://github.com/mindbox-moscow/android-sdk.git'
89-
url = 'https://github.com/mindbox-moscow/android-sdk'
79+
}
80+
developers {
81+
developer {
82+
id = 'mindbox'
83+
name = 'Petr Nikitin'
84+
9085
}
9186
}
87+
scm {
88+
connection = 'scm:https://github.com/mindbox-moscow/android-sdk.git'
89+
developerConnection = 'scm:git://github.com/mindbox-moscow/android-sdk.git'
90+
url = 'https://github.com/mindbox-moscow/android-sdk'
91+
}
9292
}
9393
}
94+
}
9495

95-
repositories {
96-
if (!project.hasProperty("sonatypeUsername")) {
97-
ext.sonatypeUsername = "sonatypeUsername"
98-
}
99-
if (!project.hasProperty("sonatypePassword")) {
100-
ext.sonatypePassword = "sonatypePassword"
101-
}
102-
maven {
103-
name = "OSSRH"
104-
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
105-
credentials {
106-
username = sonatypeUsername
107-
password = sonatypePassword
108-
}
96+
repositories {
97+
if (!project.hasProperty("sonatypeUsername")) {
98+
ext.sonatypeUsername = "sonatypeUsername"
99+
}
100+
if (!project.hasProperty("sonatypePassword")) {
101+
ext.sonatypePassword = "sonatypePassword"
102+
}
103+
maven {
104+
name = "OSSRH"
105+
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
106+
credentials {
107+
username = sonatypeUsername
108+
password = sonatypePassword
109109
}
110110
}
111111
}
112+
}
112113

113-
signing {
114-
sign publishing.publications.release
115-
}
114+
signing {
115+
sign publishing.publications.release
116116
}
117117
}

sdk/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android {
1414
}
1515
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
1616
kotlinOptions {
17-
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
17+
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
1818
}
1919
}
2020

sdk/gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
ARTIFACT_ID=mobile-sdk
2-
ARTIFACT_NAME=Mindbox Android SDK
2+
ARTIFACT_NAME=Mindbox Android SDK
3+
android.disableAutomaticComponentCreation=true

0 commit comments

Comments
 (0)