Skip to content

Commit 3386910

Browse files
author
zhujiang2
committed
更新Android S
1 parent 1b03483 commit 3386910

File tree

12 files changed

+18
-101
lines changed

12 files changed

+18
-101
lines changed

apk/app-release.apk

5.61 MB
Binary file not shown.
-4.63 MB
Binary file not shown.

app/and_res_guard.gradle

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

app/build.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ plugins {
44
id 'kotlin-kapt'
55
id 'dagger.hilt.android.plugin'
66
}
7-
apply from: 'and_res_guard.gradle'//压缩apk
87

98
android {
109
signingConfigs {
@@ -16,7 +15,6 @@ android {
1615
}
1716
}
1817
compileSdkVersion cfgs.compileSdkVersion
19-
buildToolsVersion cfgs.buildToolsVersion
2018

2119
defaultConfig {
2220
applicationId "com.zj.play"
@@ -50,6 +48,11 @@ android {
5048
buildFeatures {
5149
viewBinding true
5250
}
51+
52+
lintOptions {
53+
disable "Instantiatable"
54+
}
55+
5356
}
5457

5558
dependencies {
@@ -67,8 +70,8 @@ dependencies {
6770
//implementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
6871

6972
// hilt
70-
implementation 'com.google.dagger:hilt-android:2.40.5'
71-
kapt 'com.google.dagger:hilt-android-compiler:2.40.5'
73+
implementation "com.google.dagger:hilt-android:$hilt_version"
74+
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
7275
implementation 'androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03'
7376
kapt 'androidx.hilt:hilt-compiler:1.0.0'
7477

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<uses-permission
88
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
99
tools:ignore="ScopedStorage" />
10-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
10+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
1111
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
1212
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
1313
<uses-permission android:name="android.permission.INTERNET" />
@@ -63,6 +63,7 @@
6363
<activity
6464
android:name=".WelcomeActivity"
6565
android:configChanges="keyboardHidden|keyboard|screenSize|locale|navigation|smallestScreenSize"
66+
android:exported="true"
6667
android:theme="@style/AppTheme.NoActionBars">
6768
<intent-filter>
6869
<action android:name="android.intent.action.MAIN" />
@@ -74,6 +75,7 @@
7475
android:name="android.app.shortcuts"
7576
android:resource="@xml/shortcuts" />
7677
</activity>
78+
7779
<provider
7880
android:name="androidx.core.content.FileProvider"
7981
android:authorities="com.zj.play.fileprovider"

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@ apply from: "config.gradle"
44
buildscript {
55
ext {
66
kotlin_version = '1.6.0'
7+
hilt_version = '2.40.5'
78
}
89
repositories {
910
google()
1011
mavenCentral()
1112
maven { url 'https://maven.aliyun.com/repository/jcenter' }
12-
maven { url "https://s01.oss.sonatype.org/content/groups/public" }
1313
maven { url 'https://jitpack.io' }
1414
}
1515
dependencies {
1616
classpath 'com.android.tools.build:gradle:7.0.3'
1717
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
18-
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.20'
19-
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.36'
18+
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
2019
// NOTE: Do not place your application dependencies here; they belong
2120
// in the individual module build.gradle files
2221
}
@@ -27,7 +26,6 @@ allprojects {
2726
google()
2827
mavenCentral()
2928
maven { url 'https://maven.aliyun.com/repository/jcenter' }
30-
maven { url "https://s01.oss.sonatype.org/content/groups/public" }
3129
maven { url 'https://jitpack.io' }
3230
}
3331
}

config.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
ext {
22
cfgs = [
3-
compileSdkVersion : 30,
4-
buildToolsVersion : "30.0.2",
3+
compileSdkVersion : 31,
4+
buildToolsVersion : "31.0.3",
55
minSdkVersion : 23,
6-
targetSdkVersion : 30,
7-
versionCode : 19,
8-
versionName : "3.2.0",
6+
targetSdkVersion : 31,
7+
versionCode : 20,
8+
versionName : "4.0.0",
99
testInstrumentationRunner: "androidx.test.runner.AndroidJUnitRunner",
1010
consumerProguardFiles : 'consumer-rules.pro',
1111
]

core/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ android {
1313
}
1414
}
1515
compileSdkVersion cfgs.compileSdkVersion
16-
buildToolsVersion cfgs.buildToolsVersion
1716

1817
defaultConfig {
1918
minSdkVersion cfgs.minSdkVersion

floating/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ android {
1313
}
1414
}
1515
compileSdkVersion cfgs.compileSdkVersion
16-
buildToolsVersion cfgs.buildToolsVersion
1716

1817
defaultConfig {
1918
minSdkVersion cfgs.minSdkVersion

model/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ android {
1414
}
1515
}
1616
compileSdkVersion cfgs.compileSdkVersion
17-
buildToolsVersion cfgs.buildToolsVersion
1817

1918
defaultConfig {
2019
minSdkVersion cfgs.minSdkVersion
@@ -55,7 +54,7 @@ dependencies {
5554
implementation des.appcompat
5655
implementation project(path: ':core')
5756

58-
def room_version = "2.3.0"
57+
def room_version = "2.4.0-rc01"
5958
api "androidx.room:room-runtime:$room_version"
6059
kapt "androidx.room:room-compiler:$room_version"
6160
// For Kotlin use kapt instead of annotationProcessor

0 commit comments

Comments
 (0)