File tree Expand file tree Collapse file tree 12 files changed +18
-101
lines changed
Expand file tree Collapse file tree 12 files changed +18
-101
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff 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
98android {
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
5558dependencies {
@@ -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:$h ilt_version "
74+ kapt " com.google.dagger:hilt-android-compiler:$h ilt_version "
7275 implementation ' androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03'
7376 kapt ' androidx.hilt:hilt-compiler:1.0.0'
7477
Original file line number Diff line number Diff line change 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" />
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" />
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"
Original file line number Diff line number Diff line change @@ -4,19 +4,18 @@ apply from: "config.gradle"
44buildscript {
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}
Original file line number Diff line number Diff line change 11ext {
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 ]
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ android {
1313 }
1414 }
1515 compileSdkVersion cfgs. compileSdkVersion
16- buildToolsVersion cfgs. buildToolsVersion
1716
1817 defaultConfig {
1918 minSdkVersion cfgs. minSdkVersion
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ android {
1313 }
1414 }
1515 compileSdkVersion cfgs. compileSdkVersion
16- buildToolsVersion cfgs. buildToolsVersion
1716
1817 defaultConfig {
1918 minSdkVersion cfgs. minSdkVersion
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments