Skip to content

Commit

Permalink
docs: update places install snippet (#642)
Browse files Browse the repository at this point in the history
* docs: update places install snippet

Don't use a variable in the kotlin bom dependency.

* chore: Update build.yml

GitHub Actions runner image moved SDK manager per actions/runner-images#8952. Migrate to new location of SDK manager per path listed at actions/runner-images#9146 (comment)
  • Loading branch information
wangela committed Jan 18, 2024
1 parent 4d5616d commit a0e31e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Install NDK
run: |
sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570"
sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;20.0.5594570"
- name: Build and check
run: cd demo-java && ./gradlew assemble lint
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Install NDK
run: |
sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570"
sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;20.0.5594570"
- name: Build and check
run: cd demo-kotlin && ./gradlew assemble lint
Expand All @@ -95,7 +95,7 @@ jobs:

- name: Install NDK
run: |
sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570"
sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;20.0.5594570"
- name: Build and check
run: cd snippets && ./gradlew assemble lint
Expand Down
3 changes: 2 additions & 1 deletion snippets/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ android {

// [START maps_android_places_install_snippet]
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom:$kotlin_version"))
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.21"))
// [START_EXCLUDE silent]
// If updating kotlin-bom version number above, also edit project-level build.gradle definition of $kotlin_version variable
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation 'androidx.core:core-ktx:1.10.0'
Expand Down
4 changes: 2 additions & 2 deletions snippets/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.8.21"
ext.kotlin_version = "1.8.21" // If changing this version number, also change in the kotlin-bom dependency in app/build.gradle
repositories {
google()
mavenCentral()
Expand All @@ -23,4 +23,4 @@ allprojects {

task clean(type: Delete) {
delete rootProject.buildDir
}
}

0 comments on commit a0e31e8

Please sign in to comment.