BOM and gradle update (#8)

This commit is contained in:
Android Dev
2025-11-12 00:00:00 +07:00
committed by GitHub
parent 2b72d6edb8
commit 0db4f3564c
4 changed files with 19 additions and 16 deletions

View File

@@ -19,12 +19,12 @@ plugins {
} }
android { android {
compileSdk 32 compileSdk 33
defaultConfig { defaultConfig {
applicationId "com.example.superheroes" applicationId "com.example.superheroes"
minSdk 21 minSdk 21
targetSdk 32 targetSdk 33
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
@@ -57,13 +57,17 @@ android {
excludes += '/META-INF/{AL2.0,LGPL2.1}' excludes += '/META-INF/{AL2.0,LGPL2.1}'
} }
} }
namespace 'com.example.superheroes'
} }
dependencies { dependencies {
implementation 'androidx.activity:activity-compose:1.4.0' // Import the Compose BOM
implementation "androidx.compose.material:material:$compose_version" implementation platform('androidx.compose:compose-bom:2023.01.00')
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" implementation 'androidx.activity:activity-compose:1.6.1'
implementation 'androidx.core:core-ktx:1.8.0' implementation "androidx.compose.material:material"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" implementation "androidx.compose.ui:ui"
implementation "androidx.compose.ui:ui-tooling-preview"
implementation 'androidx.core:core-ktx:1.9.0'
debugImplementation "androidx.compose.ui:ui-tooling"
} }

View File

@@ -15,8 +15,7 @@
--> -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools">
package="com.example.superheroes">
<application <application
android:allowBackup="true" android:allowBackup="true"

View File

@@ -1,6 +1,6 @@
buildscript { buildscript {
ext { ext {
compose_version = '1.1.1' compose_version = '1.4.0'
} }
}/* }/*
* Copyright (c) 2022 The Android Open Source Project * Copyright (c) 2022 The Android Open Source Project
@@ -19,9 +19,9 @@ buildscript {
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins { plugins {
id 'com.android.application' version '7.2.0' apply false id 'com.android.application' version '7.4.0' apply false
id 'com.android.library' version '7.2.0' apply false id 'com.android.library' version '7.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
} }
task clean(type: Delete) { task clean(type: Delete) {

View File

@@ -13,9 +13,9 @@
# limitations under the License. # limitations under the License.
# #
#Mon Jun 13 11:28:35 PDT 2022 #Tue Jan 31 15:54:44 PST 2023
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME