Skip to content

Commit

Permalink
[update] 更新Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMofer committed Mar 15, 2022
1 parent feeec08 commit 27c9bbd
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 28 deletions.
7 changes: 3 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ plugins {
}

android {
compileSdkVersion 32
buildToolsVersion "32.0.0"
compileSdk 32

defaultConfig {
applicationId "com.am.widget.ui"
minSdkVersion 21
targetSdkVersion 32
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0"

Expand Down
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
android:supportsRtl="true"
android:theme="@style/Theme.StateLayout"
tools:ignore="AllowBackup">
<activity android:name=".MainActivity">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
21 changes: 3 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
mavenCentral()
}
plugins {
id 'com.android.application' version '7.1.2' apply false
id 'com.android.library' version '7.1.2' apply false
}

task clean(type: Delete) {
Expand Down
14 changes: 14 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "StateLayout"
include ':app'
include ':statelayout'
8 changes: 3 additions & 5 deletions statelayout/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ plugins {
}

android {
compileSdkVersion 32
buildToolsVersion '32.0.0'
compileSdk 32

defaultConfig {
//noinspection MinSdkTooLow
minSdkVersion 4
targetSdkVersion 32
minSdk 4
targetSdk 32
}

compileOptions {
Expand Down

0 comments on commit 27c9bbd

Please sign in to comment.