Skip to content

Commit 9be0b19

Browse files
Car Samples Contributorejfrancis-source
authored andcommitted
Sync Car App Library samples to 1.9.0-alpha01.
Bug: 513378404 GitOrigin-RevId: c24e672a07393343af54ff868b8f0e4a1a04e73b Change-Id: I1a9aa62137719de7f4388719a803ab11956a7624
1 parent 7c9b442 commit 9be0b19

288 files changed

Lines changed: 16836 additions & 7469 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

car_app_library/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ In order to build app APKs,
1313

1414
1. Open the project in Android Studio: File -> Open -> Select this directory and click OK.
1515

16-
2. Select a sample app directory (e.g. `helloworld/mobile`) in the `Project Structure` UI on the top
17-
left. Each sample app has two build targets, one for the `mobile` platform and the other for the
18-
`automotive` platform.
16+
2. Select a sample app directory (e.g. `showcase`) in the `Project Structure` UI on the top left. Each sample app has two build targets, `showcase/mobile` is for the `projected` platform and `showcase/automotive` is for the `embedded` platform.
1917

2018
3. Go to `Build -> Make Module 'androidx.car.app.app-samples.<sample_app>.<platform>'`. The apks
2119
will be generated in `<sample_app>/<platform>/build/outputs/apk`.
@@ -25,7 +23,7 @@ In order to install and run the apps,
2523
1. Open the AndroidX project in Android Studio.
2624

2725
2. Go to `Run -> Edit Configurations`, select a sample app target (e.g. `car.app.app-samples
28-
.helloworld-mobile`). If you are building for the `mobile` platform, also select `Launch: Nothing
26+
.showcase-mobile`). If you are building for the `mobile` platform, also select `Launch: Nothing
2927
` in `General -> Launch Options`. Click `OK` to close the dialog.
3028

3129
3. Select `Run -> Run <sample_app>`, to run the app, which will just install it in the selected

car_app_library/build.gradle

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,16 @@
1515
*/
1616

1717
buildscript {
18-
1918
repositories {
2019
google()
21-
jcenter()
2220
mavenCentral()
21+
gradlePluginPortal()
2322
}
24-
dependencies {
25-
classpath 'com.android.tools.build:gradle:7.0.4'
23+
}
2624

27-
// NOTE: Do not place your application dependencies here; they belong
28-
// in the individual module build.gradle files
29-
}
25+
plugins {
26+
alias libs.plugins.android.application apply false
27+
alias libs.plugins.android.library apply false
3028
}
3129

3230
allprojects {
@@ -36,7 +34,6 @@ allprojects {
3634

3735
repositories {
3836
google()
39-
jcenter()
4037
mavenCentral()
4138
}
4239
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[versions]
2+
java = "17"
3+
kotlin = "2.0.0"
4+
gradle = "8.4.2"
5+
androidGradlePlugin = "8.4.2"
6+
androidx-annotation-experimental = "1.4.1"
7+
androidx-core = "1.13.1"
8+
androidx-car = "1.9.0-alpha01"
9+
androidx-constraintlayout = "2.1.4"
10+
core-ktx = "1.13.1"
11+
12+
[libraries]
13+
androidx-car-app = { module = "androidx.car.app:app", version.ref = "androidx-car" }
14+
androidx-app-automotive = { module = "androidx.car.app:app-automotive", version.ref = "androidx-car" }
15+
androidx-app-projected = { module = "androidx.car.app:app-projected", version.ref = "androidx-car" }
16+
androidx-annotation-experimental = { module = "androidx.annotation:annotation-experimental", version.ref = "androidx-annotation-experimental" }
17+
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx-constraintlayout" }
18+
androidx-core = { module = "androidx.core:core", version.ref = "androidx-core" }
19+
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "core-ktx" }
20+
gradle = { module = "com.android.tools.build:gradle", version.ref = "gradle" }
21+
22+
23+
[plugins]
24+
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
25+
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
26+
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }

car_app_library/helloworld/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

car_app_library/helloworld/automotive/build.gradle

Lines changed: 0 additions & 50 deletions
This file was deleted.

car_app_library/helloworld/automotive/lint.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

car_app_library/helloworld/automotive/src/main/AndroidManifest.xml

Lines changed: 0 additions & 75 deletions
This file was deleted.

car_app_library/helloworld/common/build.gradle

Lines changed: 0 additions & 50 deletions
This file was deleted.

car_app_library/helloworld/common/src/main/AndroidManifest.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

car_app_library/helloworld/common/src/main/java/androidx/car/app/sample/helloworld/common/HelloWorldScreen.java

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)