Skip to content

Commit 53d1341

Browse files
authored
Merge pull request #644 from mikepenz/feature/kotlin2
Upgrade to Kotlin 2.x and Compose 1.6.10
2 parents 3e9b608 + ac5ea29 commit 53d1341

File tree

63 files changed

+131
-149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+131
-149
lines changed

.github/ci-gradle.properties

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
org.gradle.daemon=true
22
org.gradle.parallel=true
3-
org.gradle.workers.max=2
4-
org.gradle.jvmargs=-Xmx6G
5-
org.gradle.caching=true
6-
org.gradle.configureondemand=true
7-
# parallel kapt
8-
kapt.use.worker.api=true
3+
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=2048m

.github/workflows/ci.yml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,24 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 100
1919

20-
- uses: actions/setup-java@v3
20+
- uses: actions/setup-java@v4
2121
with:
2222
distribution: 'zulu'
23-
java-version: '17'
24-
java-package: jdk
25-
26-
- name: Validate gradle wrapper
27-
uses: gradle/wrapper-validation-action@v1
23+
java-version: |
24+
17
2825
2926
- name: Copy CI gradle.properties
3027
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
3128

32-
- name: Checkout Gradle Build Cache
33-
if: ${{ steps.self_hosted.outputs.FLAG != 'self-hosted' }}
34-
uses: actions/cache@v3
35-
with:
36-
path: |
37-
~/.gradle/caches
38-
~/.gradle/wrapper
39-
!~/.gradle/wrapper/dists/**/gradle*.zip
40-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
41-
restore-keys: |
42-
gradle-${{ runner.os }}-
29+
- name: Setup Gradle
30+
uses: gradle/actions/setup-gradle@v3
31+
32+
- name: Validate gradle wrapper
33+
uses: gradle/actions/wrapper-validation@v3
4334

4435
- name: Build Debug
4536
run: ./gradlew clean app:assembleDebug
@@ -109,14 +100,14 @@ jobs:
109100
find . -name "*.aab" -type f -exec cp {} "artifacts" \;
110101
111102
- name: Archive Artifacts
112-
uses: actions/upload-artifact@v3
103+
uses: actions/upload-artifact@v4
113104
with:
114105
name: "App-Artifacts"
115106
path: artifacts/*
116107

117108
- name: Build Changelog
118109
id: github_release
119-
uses: mikepenz/release-changelog-builder-action@v1
110+
uses: mikepenz/release-changelog-builder-action@v4
120111
if: startsWith(github.ref, 'refs/tags/')
121112
with:
122113
configuration: ".github/config/configuration.json"
@@ -125,7 +116,7 @@ jobs:
125116
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126117

127118
- name: Release
128-
uses: softprops/action-gh-release@91409e712cf565ce9eff10c87a8d1b11b81757ae
119+
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87
129120
if: startsWith(github.ref, 'refs/tags/')
130121
with:
131122
body: ${{steps.github_release.outputs.changelog}}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ proguard/
2929
*.log
3030
functiongraphic.psd
3131

32-
vendor/*
32+
vendor/*
33+
.kotlin

app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ android {
2828
compileSdkVersion setup.compileSdk
2929
buildToolsVersion setup.buildTools
3030

31+
namespace = "com.mikepenz.iconics.sample"
32+
3133
defaultConfig {
3234
minSdkVersion setup.composeMinSdk
3335
targetSdkVersion setup.targetSdk

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
<manifest
1818
xmlns:android="http://schemas.android.com/apk/res/android"
19-
xmlns:tools="http://schemas.android.com/tools"
20-
package="com.mikepenz.iconics.sample">
19+
xmlns:tools="http://schemas.android.com/tools">
2120

2221
<application
2322
android:name=".CustomApplication"

build.gradle

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ buildscript {
1818

1919
ext {
2020
release = [
21-
versionName: "5.5.0-compose01",
21+
versionName: "5.5.0",
2222
versionCode: 50500
2323
]
2424

2525
setup = [
26-
compileSdk : 33,
26+
compileSdk: 34,
2727
buildTools: "34.0.0",
2828
minSdk: 21,
2929
composeMinSdk: 21,
30-
targetSdk : 33
30+
targetSdk : 34
3131
]
3232

3333
versions = [
34-
kotlin : '1.8.22',
34+
kotlin : '2.0.0',
3535
androidX : '1.0.0',
3636
recyclerView : '1.3.0',
3737
material : '1.9.0',
38-
appcompat : '1.6.1',
38+
appcompat : '1.7.0',
3939
drawerlayout : '1.1.0',
4040
constraintLayout: '2.0.4',
4141
cardview : '1.0.0',
@@ -44,12 +44,11 @@ buildscript {
4444
],
4545
startup : '1.1.1',
4646
detekt : '1.18.1',
47-
aboutLibraries : '10.8.2',
48-
materialDrawer : '9.0.1',
47+
aboutLibraries: '11.2.1',
48+
materialDrawer: '9.0.2',
4949
fastAdapter : '5.7.0',
5050
// compose
51-
compose : '1.4.3',
52-
composeCompiler : '1.4.8'
51+
compose : '1.6.10',
5352
]
5453
}
5554

@@ -62,8 +61,10 @@ buildscript {
6261
}
6362

6463
dependencies {
65-
classpath 'com.android.tools.build:gradle:7.3.1'
64+
classpath 'com.android.tools.build:gradle:8.4.1'
6665
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
66+
classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:${versions.kotlin}"
67+
classpath "org.jetbrains.compose:compose-gradle-plugin:${versions.compose}"
6768
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${versions.detekt}"
6869
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:${versions.aboutLibraries}"
6970
}

community-material-typeface-library/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ android {
4040
lintOptions {
4141
abortOnError false
4242
}
43+
namespace 'com.mikepenz.iconics.typeface.library.community'
4344
}
4445
if (project.hasProperty('pushall') || project.hasProperty('communitymaterialonly')) {
4546
apply from: '../gradle-release.gradle'

community-material-typeface-library/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
<manifest
1818
xmlns:android="http://schemas.android.com/apk/res/android"
19-
xmlns:tools="http://schemas.android.com/tools"
20-
package="com.mikepenz.iconics.typeface.library.community">
19+
xmlns:tools="http://schemas.android.com/tools">
2120

2221
<application>
2322
<provider

devicon-typeface-library/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ android {
4141
lintOptions {
4242
abortOnError false
4343
}
44+
namespace 'com.mikepenz.iconics.typeface.library.devicon'
4445
}
4546
if (project.hasProperty('pushall') || project.hasProperty('DevIcononly')) {
4647
apply from: '../gradle-release.gradle'

devicon-typeface-library/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
<manifest
1818
xmlns:android="http://schemas.android.com/apk/res/android"
19-
xmlns:tools="http://schemas.android.com/tools"
20-
package="com.mikepenz.iconics.typeface.library.devicon">
19+
xmlns:tools="http://schemas.android.com/tools">
2120

2221
<application>
2322
<provider

0 commit comments

Comments
 (0)