Skip to content

Commit

Permalink
Upgrade AGP
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Apr 15, 2023
1 parent cf7bf65 commit b277416
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
echo 'org.gradle.vfs.watch=true' >> gradle.properties
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
echo 'android.native.buildOutput=verbose' >> gradle.properties
sed -i 's/org.gradle.unsafe.configuration-cache=true//g' gradle.properties
sed -i 's/org.gradle.configuration-cache=true//g' gradle.properties
./gradlew zipAll
- name: Prepare artifact
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ android {
buildConfigField("long", "BUILD_TIME", Instant.now().epochSecond.toString())
}

packagingOptions {
packaging {
resources {
excludes += "META-INF/**"
excludes += "okhttp3/**"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
if (module == null) {
if (!safeNavigate(AppListFragmentDirections.actionAppListFragmentToModulesFragment())) {
if (!safeNavigate(R.id.action_app_list_fragment_to_modules_fragment)) {
safeNavigate(R.id.modules_nav);
}
}
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ plugins {
alias(libs.plugins.lsplugin.jgit)
alias(libs.plugins.agp.lib) apply false
alias(libs.plugins.agp.app) apply false
alias(libs.plugins.nav.safeargs) apply false
}

cmaker {
Expand Down
1 change: 1 addition & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {

buildFeatures {
androidResources = false
buildConfig = true
}

defaultConfig {
Expand Down
1 change: 1 addition & 0 deletions daemon/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ val defaultManagerPackageName: String by rootProject.extra
android {
buildFeatures {
prefab = true
buildConfig = true
}

defaultConfig {
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@
android.experimental.enableNewResourceShrinker=true
android.experimental.enableNewResourceShrinker.preciseShrinking=true
android.enableAppCompileTimeRClass=true
android.nonTransitiveRClass=true
android.enableR8.fullMode=true
android.useAndroidX=true
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
agp = "7.4.2"
agp = "8.0.0"
kotlin = "1.8.20"
nav = "2.5.3"
appcenter = "5.0.1"
Expand All @@ -16,7 +16,7 @@ autoresconfig = { id = "dev.rikka.tools.autoresconfig", version = "1.2.2" }
materialthemebuilder = { id = "dev.rikka.tools.materialthemebuilder", version = "1.3.3" }
lsplugin-resopt = { id = "org.lsposed.lsplugin.resopt", version = "1.5" }
lsplugin-apksign = { id = "org.lsposed.lsplugin.apksign", version = "1.1" }
lsplugin-cmaker = { id = "org.lsposed.lsplugin.cmaker", version = "1.0" }
lsplugin-cmaker = { id = "org.lsposed.lsplugin.cmaker", version = "1.1" }
lsplugin-jgit = { id = "org.lsposed.lsplugin.jgit", version = "1.0" }

[libraries]
Expand Down
1 change: 1 addition & 0 deletions magisk-loader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ android {

buildFeatures {
prefab = true
buildConfig = true
}

defaultConfig {
Expand Down
4 changes: 4 additions & 0 deletions services/daemon-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ plugins {
}

android {
buildFeatures {
aidl = true
}

defaultConfig {
consumerProguardFiles("proguard-rules.pro")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import android.text.TextUtils;
import android.util.Log;

import org.lsposed.lspd.daemonservice.BuildConfig;

import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.zone.ZoneRulesException;
Expand All @@ -37,13 +35,11 @@ public class Utils {
public static final boolean isLENOVO = !TextUtils.isEmpty(SystemProperties.get("ro.lenovo.region"));

public static void logD(Object msg) {
if (BuildConfig.DEBUG)
Log.d(LOG_TAG, msg.toString());
Log.d(LOG_TAG, msg.toString());
}

public static void logD(String msg, Throwable throwable) {
if (BuildConfig.DEBUG)
Log.d(LOG_TAG, msg, throwable);
Log.d(LOG_TAG, msg, throwable);
}

public static void logW(String msg) {
Expand Down
4 changes: 4 additions & 0 deletions services/manager-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ plugins {
}

android {
buildFeatures {
aidl = true
}

defaultConfig {
consumerProguardFiles("proguard-rules.pro")
}
Expand Down

0 comments on commit b277416

Please sign in to comment.