Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Android SDK and library versions. #132

Merged
merged 5 commits into from
Aug 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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