Skip to content

Commit d1e0e0b

Browse files
Merge pull request #76 from futuredapp/feature/compose-stable-finally
Bump compose version to 1.0.4, bump targetSdk to 31, Bump AGP to 7.0.3
2 parents c396875 + a4b8276 commit d1e0e0b

File tree

10 files changed

+36
-31
lines changed

10 files changed

+36
-31
lines changed

.github/workflows/publish_release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
- uses: actions/setup-ruby@v1
1414
with:
1515
ruby-version: '2.6'
16-
- name: Set up JDK 1.11
17-
uses: actions/setup-java@v1
16+
- name: set up JDK
17+
uses: actions/setup-java@v2
1818
with:
19-
java-version: 1.11
19+
distribution: 'zulu'
20+
java-version: '11'
2021
- name: Build & run unit tests
2122
shell: bash
2223
run: ./gradlew --continue build testRelease

.github/workflows/publish_snapshot.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010
runs-on: [ ubuntu-latest ]
1111
steps:
1212
- uses: actions/checkout@v1
13-
- name: Set up JDK 1.11
14-
uses: actions/setup-java@v1
13+
- name: set up JDK
14+
uses: actions/setup-java@v2
1515
with:
16-
java-version: 1.11
16+
distribution: 'zulu'
17+
java-version: '11'
1718
- name: Run unit tests
1819
shell: bash
1920
run: ./gradlew --continue build testRelease

.github/workflows/pull_request.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ jobs:
1212
- uses: actions/setup-ruby@v1
1313
with:
1414
ruby-version: '2.6'
15-
- name: set up JDK 1.11
16-
uses: actions/setup-java@v1
15+
- name: set up JDK
16+
uses: actions/setup-java@v2
1717
with:
18-
java-version: 1.11
18+
distribution: 'zulu'
19+
java-version: '11'
1920
- name: Run Lint Check
2021
shell: bash
2122
run: ./gradlew lintCheck
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
object ProjectSettings {
22
const val applicationId = "app.futured.donut"
3-
const val targetSdk = 29
3+
const val targetSdk = 31
44
const val minSdkLibrary = 19
55
const val minSdkLibraryCompose = 21
66
const val minSdkSample = 21
7-
const val minSdk = 21
87
}

buildSrc/src/main/kotlin/Versions.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
object Versions {
22
// gradle
3-
const val gradle = "7.0.0-alpha12"
3+
const val gradle = "7.0.3"
44

55
// kotlin
6-
const val kotlin = "1.4.32"
6+
const val kotlin = "1.5.31"
77

88
// plugins
99
const val detekt = "1.4.0"
@@ -13,10 +13,10 @@ object Versions {
1313
const val dokka = "1.4.20"
1414

1515
// androidx
16-
const val appCompat = "1.3.0-beta01"
16+
const val appCompat = "1.3.1"
1717
const val constraintLayout = "1.1.3"
1818
const val ktx = "1.1.0"
1919

2020
// Jetpack Compose
21-
const val jetpackCompose = "1.0.0-beta04"
21+
const val jetpackCompose = "1.0.4"
2222
}

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip

library-compose/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ plugins {
77
}
88

99
android {
10-
compileSdkVersion(ProjectSettings.targetSdk)
10+
compileSdk = ProjectSettings.targetSdk
1111

1212
defaultConfig {
13-
minSdkVersion(ProjectSettings.minSdkLibraryCompose)
14-
targetSdkVersion(ProjectSettings.targetSdk)
13+
minSdk = ProjectSettings.minSdkLibraryCompose
14+
targetSdk = ProjectSettings.targetSdk
1515
}
1616

1717
sourceSets {

library/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ plugins {
77
}
88

99
android {
10-
compileSdkVersion(ProjectSettings.targetSdk)
10+
compileSdk = ProjectSettings.targetSdk
1111

1212
defaultConfig {
13-
minSdkVersion(ProjectSettings.minSdkLibrary)
14-
targetSdkVersion(ProjectSettings.targetSdk)
13+
minSdk = ProjectSettings.minSdkLibrary
14+
targetSdk = ProjectSettings.targetSdk
1515
}
1616

1717
sourceSets {

sample/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ plugins {
66
}
77

88
android {
9-
compileSdkVersion(ProjectSettings.targetSdk)
9+
compileSdk = ProjectSettings.targetSdk
1010

1111
defaultConfig {
1212
applicationId = ProjectSettings.applicationId
13-
minSdkVersion(ProjectSettings.minSdk)
14-
targetSdkVersion(ProjectSettings.targetSdk)
13+
minSdk = ProjectSettings.minSdkSample
14+
targetSdk = ProjectSettings.targetSdk
1515
versionCode = 1
1616
}
1717

sample/src/main/AndroidManifest.xml

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
34
package="app.futured.donutsample">
45

56
<application
@@ -12,18 +13,20 @@
1213

1314
<activity
1415
android:name=".ui.main.MainActivity"
15-
android:screenOrientation="portrait">
16+
android:exported="true"
17+
android:screenOrientation="portrait"
18+
tools:ignore="LockedOrientationActivity">
1619
<intent-filter>
17-
<action android:name="android.intent.action.MAIN" />
18-
<action android:name="android.intent.action.VIEW" />
20+
<action android:name="android.intent.action.MAIN"/>
21+
<action android:name="android.intent.action.VIEW"/>
1922

20-
<category android:name="android.intent.category.LAUNCHER" />
23+
<category android:name="android.intent.category.LAUNCHER"/>
2124
</intent-filter>
2225
</activity>
2326

24-
<activity android:name=".ui.playground.PlaygroundActivity" />
27+
<activity android:name=".ui.playground.PlaygroundActivity"/>
2528

26-
<activity android:name=".ui.playground.compose.PlaygroundComposeActivity" />
29+
<activity android:name=".ui.playground.compose.PlaygroundComposeActivity"/>
2730
</application>
2831

2932
</manifest>

0 commit comments

Comments
 (0)