Browse Source

update gradle

lyq.me@qq.com 1 year ago
parent
commit
fe4845671a
6 changed files with 16 additions and 25 deletions
  1. 4 4
      app/build.gradle
  2. 3 0
      app/src/main/AndroidManifest.xml
  3. 5 3
      build.gradle
  4. 3 17
      gradle.properties
  5. 1 1
      gradle/wrapper/gradle-wrapper.properties
  6. 0 0
      gradlew

+ 4 - 4
app/build.gradle

@@ -1,13 +1,13 @@
 apply plugin: 'com.android.application'
 
 android {
-    compileSdkVersion 28
+    compileSdkVersion 33
     defaultConfig {
         applicationId "me.yoqi.app.wxredpacket"
         minSdkVersion 16
-        targetSdkVersion 28
-        versionCode 1
-        versionName "1.0"
+        targetSdkVersion 33
+        versionCode 10002
+        versionName "1.0.1"
         ndk {
             // 设置支持的SO库架构
             abiFilters 'armeabi', 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'

+ 3 - 0
app/src/main/AndroidManifest.xml

@@ -29,6 +29,7 @@
         android:theme="@style/AppTheme">
         <activity android:name=".activities.MainActivity"
             android:launchMode="singleTask"
+            exported="true"
             android:theme="@style/Base.Theme.AppCompat.Light">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
@@ -37,11 +38,13 @@
             </intent-filter>
         </activity>
         <activity android:name=".activities.SettingsActivity"
+        exported="true"
             android:theme="@style/Base.Theme.AppCompat.Light"></activity>
         <activity android:name=".activities.WebViewActivity"
             android:theme="@style/Base.Theme.AppCompat.Light"></activity>
         <service
             android:name=".services.HongbaoService"
+            exported="true"
             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
             <intent-filter>
                 <action android:name="android.accessibilityservice.AccessibilityService"/>

+ 5 - 3
build.gradle

@@ -2,17 +2,19 @@ buildscript {
     
     repositories {
         google()
-        maven{url'http://maven.aliyun.com/nexus/content/groups/public/'}
+        mavenCentral()
+        // maven{url'http://maven.aliyun.com/nexus/content/groups/public/'}
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:3.4.2'
+        classpath 'com.android.tools.build:gradle:7.2.2'
     }
 }
 
 allprojects {
     repositories {
         google()
-        maven{url'http://maven.aliyun.com/nexus/content/groups/public/'}
+        mavenCentral()
+        // maven{url'http://maven.aliyun.com/nexus/content/groups/public/'}
     }
 }
 

+ 3 - 17
gradle.properties

@@ -1,18 +1,4 @@
-# Project-wide Gradle settings.
-
-# IDE (e.g. Android Studio) users:
-# Gradle settings configured through the IDE *will override*
-# any settings specified in this file.
-
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-
-# Specifies the JVM arguments used for the daemon process.
-# The setting is particularly useful for tweaking memory settings.
-org.gradle.jvmargs=-Xmx1024m
-
-# When configured, Gradle will run in incubating parallel mode.
-# This option should only be used with decoupled projects. More details, visit
-# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
-# org.gradle.parallel=true
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+android.useAndroidX=true
+android.nonTransitiveRClass=true
 android.useDeprecatedNdk=true

+ 1 - 1
gradle/wrapper/gradle-wrapper.properties

@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip

+ 0 - 0
gradlew