Skip to content

Commit da92184

Browse files
committed
Upgrade most deps; propagate experimental flag; add CI test stage
1 parent 8341228 commit da92184

File tree

13 files changed

+95
-21
lines changed

13 files changed

+95
-21
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
release:
1111

12-
runs-on: macos-13
12+
runs-on: ubuntu-latest
1313

1414
steps:
1515
- name: Check out repo

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check out repo
16+
uses: actions/checkout@v4
17+
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '17'
22+
distribution: 'temurin'
23+
cache: gradle
24+
25+
- name: Grant execute permission for gradlew
26+
run: chmod +x gradlew
27+
28+
- name: Create local.properties (required for build)
29+
run: touch local.properties
30+
31+
- name: Run ktfmtFormat
32+
run: ./gradlew ktfmtCheck
33+
34+
- name: Gradle Build
35+
run: ./gradlew build
36+
37+
- name: Gradle Test
38+
run: ./gradlew test

.idea/deviceManager.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/markdown.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/studiobot.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ implementation("com.stadiamaps:jetpack-compose-autocomplete:2.0.0")
2929

3030
You can find more examples on [Maven Central](https://central.sonatype.com/artifact/com.stadiamaps/jetpack-compose-autocomplete).
3131

32+
NOTE: This project uses Material 3 Search Composables.
33+
These are marked as experimental upstream, but we use them anyways,
34+
because the user experience is so vastly superior to hand-rolled alternatives.
35+
Even using stable APIs, issues frequently arise from differing Jetpack Compose BOM versions at runtime,
36+
so you must ensure that your version is relatively close to ours.
37+
See [`libs.versions.toml`](gradle/libs.versions.toml) for details.
38+
3239
## Getting an API key
3340

3441
You will need an API key to use this composable.

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ plugins {
77

88
android {
99
namespace 'com.stadiamaps.autocomplete.demoapp'
10-
compileSdk 35
10+
compileSdk 36
1111

1212
defaultConfig {
1313
applicationId "com.stadiamaps.autocomplete.demoapp"
1414
minSdk 27
15-
targetSdk 35
15+
targetSdk 36
1616
versionCode 1
1717
versionName "1.0"
1818

app/src/main/java/com/stadiamaps/autocomplete/demoapp/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ import androidx.activity.compose.setContent
88
import androidx.activity.enableEdgeToEdge
99
import androidx.compose.foundation.layout.fillMaxSize
1010
import androidx.compose.foundation.layout.padding
11+
import androidx.compose.material3.ExperimentalMaterial3Api
1112
import androidx.compose.material3.Scaffold
1213
import androidx.compose.ui.Modifier
1314
import com.stadiamaps.autocomplete.AutocompleteSearch
1415
import com.stadiamaps.autocomplete.center
1516
import com.stadiamaps.autocomplete.demoapp.ui.theme.StadiaMapsAutocompleteSearchTheme
1617

1718
class MainActivity : ComponentActivity() {
19+
@OptIn(ExperimentalMaterial3Api::class)
1820
override fun onCreate(savedInstanceState: Bundle?) {
1921
super.onCreate(savedInstanceState)
2022

gradle/libs.versions.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[versions]
2-
agp = "8.9.1"
3-
kotlin = "2.0.20"
4-
coreKtx = "1.13.1"
2+
agp = "8.13.2"
3+
kotlin = "2.2.20"
4+
coreKtx = "1.17.0"
55
junit = "4.13.2"
6-
junitVersion = "1.2.1"
7-
espressoCore = "3.6.1"
8-
lifecycle = "2.8.6"
9-
activityCompose = "1.9.2"
10-
composeBom = "2024.09.03"
11-
ktfmt = "0.20.1"
12-
appcompat = "1.7.0"
13-
material = "1.12.0"
14-
stadiamaps = "5.0.0"
15-
moshi = "1.15.1"
6+
junitVersion = "1.3.0"
7+
espressoCore = "3.7.0"
8+
lifecycle = "2.10.0"
9+
activityCompose = "1.12.3"
10+
composeBom = "2026.01.01"
11+
ktfmt = "0.25.0"
12+
appcompat = "1.7.1"
13+
material = "1.13.0"
14+
stadiamaps = "6.0.1"
15+
moshi = "1.15.2"
1616
okhttp3 = "4.12.0"
1717
retrofit = "2.11.0"
1818
mavenPublish = "0.29.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Sep 19 02:49:01 KST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)