From de5c902fdbef713055229ffd9524e1c5a9180639 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 8 Mar 2019 10:19:22 -0500 Subject: [PATCH] Remove app-core module Less confusion --- app-core/.gitignore | 2 -- app-core/build.gradle | 21 ------------------- app-core/proguard-rules.pro | 21 ------------------- app-core/src/main/AndroidManifest.xml | 4 ---- app/build.gradle | 7 ++++++- app/src/main/AndroidManifest.xml | 1 + .../main/java/com/topjohnwu/magisk/App.java | 1 - .../java/com/topjohnwu/magisk/Config.java | 0 .../main/java/com/topjohnwu/magisk/Const.java | 0 .../magisk/container/BaseModule.java | 0 .../topjohnwu/magisk/container/Module.java | 0 .../topjohnwu/magisk/container/Policy.java | 0 .../com/topjohnwu/magisk/container/Repo.java | 0 .../magisk/container/SuLogEntry.java | 0 .../topjohnwu/magisk/container/TarEntry.java | 0 .../magisk/container/ValueSortedMap.java | 0 .../topjohnwu/magisk/database/MagiskDB.java | 0 .../magisk/database/RepoDatabaseHelper.java | 0 .../topjohnwu/magisk/tasks/CheckUpdates.java | 0 .../com/topjohnwu/magisk/tasks/FlashZip.java | 0 .../magisk/tasks/MagiskInstaller.java | 0 .../topjohnwu/magisk/tasks/UpdateRepos.java | 0 .../magisk/utils/FingerprintHelper.java | 0 .../magisk/utils/ISafetyNetHelper.java | 0 .../topjohnwu/magisk/utils/LocaleManager.java | 0 .../com/topjohnwu/magisk/utils/Logger.java | 2 +- .../com/topjohnwu/magisk/utils/RootUtils.java | 2 +- .../topjohnwu/magisk/utils/SuConnector.java | 0 .../com/topjohnwu/magisk/utils/SuLogger.java | 0 .../com/topjohnwu/magisk/utils/Topic.java | 0 .../com/topjohnwu/magisk/utils/Utils.java | 0 .../com/topjohnwu/magisk/utils/ZipUtils.java | 0 app/src/main/res/raw/.gitignore | 1 + .../src/main/res/raw/nonroot_utils.sh | 0 {app-core => app}/src/main/res/raw/utils.sh | 0 build.py | 10 +++++---- settings.gradle | 2 +- 37 files changed, 17 insertions(+), 57 deletions(-) delete mode 100644 app-core/.gitignore delete mode 100644 app-core/build.gradle delete mode 100644 app-core/proguard-rules.pro delete mode 100644 app-core/src/main/AndroidManifest.xml rename {app-core => app}/src/main/java/com/topjohnwu/magisk/App.java (97%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/Config.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/Const.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/container/BaseModule.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/container/Module.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/container/Policy.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/container/Repo.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/container/SuLogEntry.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/container/TarEntry.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/container/ValueSortedMap.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/database/MagiskDB.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/database/RepoDatabaseHelper.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/tasks/CheckUpdates.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/tasks/FlashZip.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/tasks/MagiskInstaller.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/tasks/UpdateRepos.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/FingerprintHelper.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/ISafetyNetHelper.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/LocaleManager.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/Logger.java (92%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/RootUtils.java (97%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/SuConnector.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/SuLogger.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/Topic.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/Utils.java (100%) rename {app-core => app}/src/main/java/com/topjohnwu/magisk/utils/ZipUtils.java (100%) create mode 100644 app/src/main/res/raw/.gitignore rename {app-core => app}/src/main/res/raw/nonroot_utils.sh (100%) rename {app-core => app}/src/main/res/raw/utils.sh (100%) diff --git a/app-core/.gitignore b/app-core/.gitignore deleted file mode 100644 index 512bf037e..000000000 --- a/app-core/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/build -src/main/res/raw/util_functions.sh diff --git a/app-core/build.gradle b/app-core/build.gradle deleted file mode 100644 index 36a7d82a4..000000000 --- a/app-core/build.gradle +++ /dev/null @@ -1,21 +0,0 @@ -apply plugin: 'com.android.library' - -android { - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } -} - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - api project(':net') - api project(':signing') - api 'org.kamranzafar:jtar:2.3' - - def libsuVersion = '2.3.1' - api "com.github.topjohnwu.libsu:core:${libsuVersion}" - api "com.github.topjohnwu.libsu:io:${libsuVersion}" -} diff --git a/app-core/proguard-rules.pro b/app-core/proguard-rules.pro deleted file mode 100644 index f1b424510..000000000 --- a/app-core/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/app-core/src/main/AndroidManifest.xml b/app-core/src/main/AndroidManifest.xml deleted file mode 100644 index cd9b95e1e..000000000 --- a/app-core/src/main/AndroidManifest.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - diff --git a/app/build.gradle b/app/build.gradle index a537316cd..57406f856 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -24,9 +24,10 @@ dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation project(':net') implementation project(':shared') - implementation project(':app-core') + implementation project(':signing') implementation 'ru.noties:markwon:2.0.1' implementation 'com.caverock:androidsvg-aar:1.3' + implementation 'org.kamranzafar:jtar:2.3' implementation 'net.sourceforge.streamsupport:android-retrostreams:1.7.0' def androidXVersion = "1.0.0" @@ -40,6 +41,10 @@ dependencies { implementation 'androidx.room:room-runtime:2.0.0' implementation 'androidx.transition:transition:1.0.1' + def libsuVersion = '2.3.1' + implementation "com.github.topjohnwu.libsu:core:${libsuVersion}" + implementation "com.github.topjohnwu.libsu:io:${libsuVersion}" + def butterKnifeVersion = '10.1.0' implementation "com.jakewharton:butterknife-runtime:${butterKnifeVersion}" annotationProcessor "com.jakewharton:butterknife-compiler:${butterKnifeVersion}" diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c28ad9250..db46be8fa 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -6,6 +6,7 @@ + {target}') zipf.writestr(target, util_func) diff --git a/settings.gradle b/settings.gradle index 8089be3ec..d4a246b39 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':app', ':app-core', ':net', ':signing', ':native', ':snet', ':stub', ':shared' +include ':app', ':net', ':signing', ':native', ':snet', ':stub', ':shared'