Skip to content

Commit

Permalink
Merge pull request #132 from yamasa/master
Browse files Browse the repository at this point in the history
Update Android SDK and library versions.
  • Loading branch information
yamasa authored Aug 7, 2022
2 parents a1e0bf2 + ecf2530 commit 047798e
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 44 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
run: ./gradlew assemble test

android-test:
if: ${{ false }} # Disable for now: https://github.com/line/lich/issues/131
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion component-compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.get()
kotlinCompilerExtensionVersion libs.versions.composeCompiler.get()
}
}

Expand Down
48 changes: 25 additions & 23 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
[versions]
compileSdk = "31"
targetSdk = "31"
androidGradlePlugin = "7.1.2"
androidLint = "30.1.2"
androidMaterial = "1.5.0"
kotlin = "1.6.10"
kotlinCoroutines = "1.6.0"
kotlinMetadataJvm = "0.4.2"
ksp = "1.6.10-1.0.4"
compose = "1.1.1"
androidxActivity = "1.4.0"
androidxAppcompat = "1.4.1"
androidxConstraintlayout = "2.1.3"
androidxFragment = "1.4.1"
androidxLifecycle = "2.4.1"
androidxNavigation = "2.4.1"
androidxRoom = "2.4.2"
compileSdk = "32"
targetSdk = "32"
androidGradlePlugin = "7.2.2"
androidLint = "30.2.2"
androidMaterial = "1.6.1"
kotlin = "1.7.10"
kotlinCoroutines = "1.6.4"
kotlinMetadataJvm = "0.5.0"
ksp = "1.7.10-1.0.6"
compose = "1.2.0"
composeCompiler = "1.3.0-rc02"
androidxActivity = "1.5.1"
androidxAppcompat = "1.4.2"
androidxConstraintlayout = "2.1.4"
androidxFragment = "1.5.1"
androidxLifecycle = "2.5.1"
androidxNavigation = "2.5.1"
androidxRoom = "2.4.3"
androidxTestCore = "1.4.0"
androidxTestRunner = "1.4.0"
androidxTestJunit = "1.1.3"
androidxTestEspresso = "3.4.0"
autoService = "1.0.1"
autoServiceKsp = "1.0.0"
okhttp = "4.9.3"
kotlinpoet = "1.10.2"
okhttp = "4.10.0"
kotlinpoet = "1.12.0"
thrift = "0.16.0"
dexmaker = "2.28.1"
mockito = "4.4.0"
dexmaker = "2.28.3"
mockito = "4.6.1"
mockitoKotlin = "4.0.0"
mockk = "1.12.3"
robolectric = "4.7.3"
mockk = "1.12.5"
robolectric = "4.8.1"
nexusStaging = "0.30.0"

[libraries]
Expand Down Expand Up @@ -64,6 +65,7 @@ compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling", versi
compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview", version.ref = "compose" }

# androidxActivity
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "androidxActivity" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "androidxActivity" }

# androidxAppcompat
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 6 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
14 changes: 8 additions & 6 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
Expand All @@ -25,7 +25,7 @@
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand All @@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand Down Expand Up @@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal
Expand Down
7 changes: 1 addition & 6 deletions savedstate/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@ android {

dependencies {
api libs.androidx.lifecycle.viewmodel.savedstate
implementation libs.androidx.activity
compileOnly libs.androidx.fragment
lintPublish project(':static-analysis')
// https://github.com/line/lich/issues/114
constraints {
implementation(libs.androidx.lifecycle.viewmodel.ktx) {
because 'lifecycle-viewmodel-ktx:2.3 conflicts with lifecycle-viewmodel:2.4+'
}
}

kspAndroidTest project(':savedstate-compiler')
androidTestImplementation libs.bundles.test.instrumentation
Expand Down
2 changes: 1 addition & 1 deletion viewmodel-compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {
}

composeOptions {
kotlinCompilerExtensionVersion libs.versions.compose.get()
kotlinCompilerExtensionVersion libs.versions.composeCompiler.get()
}
}

Expand Down
7 changes: 1 addition & 6 deletions viewmodel/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@ android {
dependencies {
api libs.kotlin.coroutines.android
api libs.androidx.lifecycle.viewmodel.savedstate
implementation libs.androidx.activity
compileOnly libs.androidx.fragment
compileOnly libs.androidx.navigation.fragment
lintPublish project(':static-analysis')
// https://github.com/line/lich/issues/114
constraints {
implementation(libs.androidx.lifecycle.viewmodel.ktx) {
because 'lifecycle-viewmodel-ktx:2.3 conflicts with lifecycle-viewmodel:2.4+'
}
}

androidTestImplementation project(':savedstate')
kspAndroidTest project(':savedstate-compiler')
Expand Down

0 comments on commit 047798e

Please sign in to comment.