Skip to content

Commit

Permalink
初步适配Android12
Browse files Browse the repository at this point in the history
  • Loading branch information
caoyanglee committed Dec 11, 2021
1 parent bf07556 commit 3070ee7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">

<activity android:name=".ui.MainActivity">
<activity android:name=".ui.MainActivity"
android:exported="true"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
19 changes: 9 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ buildscript {
//版本
ext.versions = [
'minSdk' : 21,
'compileSdk': 30,
'targetSdk' : 30,
'compileSdk': 31,
'targetSdk' : 31,
]
//依赖
ext.deps = [
'core' : [
'ui' : 'com.github.caoyanglee:universalui:0.6.24'
'ui' : 'com.github.caoyanglee:universalui:0.7.0'
]
]
//常规
ext.kotlin_version = '1.6.0'
repositories {
jcenter()
google()
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/public' }//阿里云 maven & jcenter
maven { url "https://jitpack.io" } // 添加jitpack
maven { url 'https://maven.aliyun.com/repository/google' }//阿里云 google
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
Expand All @@ -30,10 +30,9 @@ buildscript {

allprojects {
repositories {
mavenCentral()
jcenter()
google()
maven { url "https://jitpack.io" }
maven { url 'https://maven.aliyun.com/repository/public' }//阿里云 maven & jcenter
maven { url "https://jitpack.io" } // 添加jitpack
maven { url 'https://maven.aliyun.com/repository/google' }//阿里云 google
}
//加上这些
tasks.withType(Javadoc) {
Expand Down

0 comments on commit 3070ee7

Please sign in to comment.