Skip to content

Commit

Permalink
更新Android S
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujiang2 committed Dec 9, 2021
1 parent 1b03483 commit 3386910
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 101 deletions.
Binary file added apk/app-release.apk
Binary file not shown.
Binary file removed apk/app-release_7zip_aligned_signed.apk
Binary file not shown.
81 changes: 0 additions & 81 deletions app/and_res_guard.gradle

This file was deleted.

11 changes: 7 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ plugins {
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
}
apply from: 'and_res_guard.gradle'//压缩apk

android {
signingConfigs {
Expand All @@ -16,7 +15,6 @@ android {
}
}
compileSdkVersion cfgs.compileSdkVersion
buildToolsVersion cfgs.buildToolsVersion

defaultConfig {
applicationId "com.zj.play"
Expand Down Expand Up @@ -50,6 +48,11 @@ android {
buildFeatures {
viewBinding true
}

lintOptions {
disable "Instantiatable"
}

}

dependencies {
Expand All @@ -67,8 +70,8 @@ dependencies {
//implementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'

// hilt
implementation 'com.google.dagger:hilt-android:2.40.5'
kapt 'com.google.dagger:hilt-android-compiler:2.40.5'
implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
implementation 'androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03'
kapt 'androidx.hilt:hilt-compiler:1.0.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 @@ -7,7 +7,7 @@
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down Expand Up @@ -63,6 +63,7 @@
<activity
android:name=".WelcomeActivity"
android:configChanges="keyboardHidden|keyboard|screenSize|locale|navigation|smallestScreenSize"
android:exported="true"
android:theme="@style/AppTheme.NoActionBars">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -74,6 +75,7 @@
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity>

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.zj.play.fileprovider"
Expand Down
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@ apply from: "config.gradle"
buildscript {
ext {
kotlin_version = '1.6.0'
hilt_version = '2.40.5'
}
repositories {
google()
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url "https://s01.oss.sonatype.org/content/groups/public" }
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.20'
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.36'
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -27,7 +26,6 @@ allprojects {
google()
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url "https://s01.oss.sonatype.org/content/groups/public" }
maven { url 'https://jitpack.io' }
}
}
Expand Down
10 changes: 5 additions & 5 deletions config.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ext {
cfgs = [
compileSdkVersion : 30,
buildToolsVersion : "30.0.2",
compileSdkVersion : 31,
buildToolsVersion : "31.0.3",
minSdkVersion : 23,
targetSdkVersion : 30,
versionCode : 19,
versionName : "3.2.0",
targetSdkVersion : 31,
versionCode : 20,
versionName : "4.0.0",
testInstrumentationRunner: "androidx.test.runner.AndroidJUnitRunner",
consumerProguardFiles : 'consumer-rules.pro',
]
Expand Down
1 change: 0 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ android {
}
}
compileSdkVersion cfgs.compileSdkVersion
buildToolsVersion cfgs.buildToolsVersion

defaultConfig {
minSdkVersion cfgs.minSdkVersion
Expand Down
1 change: 0 additions & 1 deletion floating/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ android {
}
}
compileSdkVersion cfgs.compileSdkVersion
buildToolsVersion cfgs.buildToolsVersion

defaultConfig {
minSdkVersion cfgs.minSdkVersion
Expand Down
3 changes: 1 addition & 2 deletions model/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ android {
}
}
compileSdkVersion cfgs.compileSdkVersion
buildToolsVersion cfgs.buildToolsVersion

defaultConfig {
minSdkVersion cfgs.minSdkVersion
Expand Down Expand Up @@ -55,7 +54,7 @@ dependencies {
implementation des.appcompat
implementation project(path: ':core')

def room_version = "2.3.0"
def room_version = "2.4.0-rc01"
api "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
// For Kotlin use kapt instead of annotationProcessor
Expand Down
1 change: 0 additions & 1 deletion network/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ android {
}
}
compileSdkVersion cfgs.compileSdkVersion
buildToolsVersion cfgs.buildToolsVersion

defaultConfig {
minSdkVersion cfgs.minSdkVersion
Expand Down
1 change: 0 additions & 1 deletion permisson/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ android {
}
}
compileSdkVersion cfgs.compileSdkVersion
buildToolsVersion cfgs.buildToolsVersion

defaultConfig {
minSdkVersion cfgs.minSdkVersion
Expand Down

0 comments on commit 3386910

Please sign in to comment.