Skip to content

Commit

Permalink
Update ActivityEmbedding to Kotlin 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Orgiu committed Sep 3, 2024
1 parent a62577d commit 87ea932
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ plugins {
}

android {
compileSdk 34
compileSdk 35

defaultConfig {
applicationId "com.example.activityembedding"
minSdk 31
targetSdk 34
targetSdk 35
versionCode 1
versionName "1.0"

Expand Down Expand Up @@ -73,5 +73,5 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-device:1.0.1'
androidTestImplementation("androidx.test.ext:junit-ktx:1.2.1")
androidTestImplementation("androidx.test.ext:truth:1.6.0")
androidTestImplementation("androidx.test:runner:1.6.1")
androidTestImplementation("androidx.test:runner:1.6.2")
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
Copyright 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,28 +14,26 @@
limitations under the License.
-->
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/cardView"
android:layout_height="wrap_content"
android:layout_width="match_parent"
app:cardCornerRadius="12dp"
android:layout_height="wrap_content"
android:layout_margin="4dp"
app:cardPreventCornerOverlap="true"
android:clickable="true"
app:cardBackgroundColor="@color/design_default_color_surface"
>
app:cardCornerRadius="12dp"
app:cardPreventCornerOverlap="true">

<TextView
android:id="@+id/textView"
android:layout_margin="8dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_margin="8dp"
android:background="?selectableItemBackground"
android:textAppearance="@style/TextAppearance.AppCompat.Button"

>
android:textColor="@color/design_default_color_primary"
tools:text="TextView">

</TextView>
</androidx.cardview.widget.CardView>
10 changes: 3 additions & 7 deletions CanonicalLayouts/list-detail-activity-embedding/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.5.0' apply false
id 'com.android.library' version '8.5.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
id 'com.android.application' version '8.6.0' apply false
id 'com.android.library' version '8.6.0' apply false
id 'org.jetbrains.kotlin.android' version '2.0.0' apply false
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false

0 comments on commit 87ea932

Please sign in to comment.