From 072e9a1b02694f97d975ccc8b40cd9d7a00647de Mon Sep 17 00:00:00 2001 From: Steve Soltys Date: Wed, 8 Nov 2017 23:53:45 -0500 Subject: [PATCH] Remove Gradle as build system This application must be compiled with the operating system, so Gradle is unnecessary. --- app/src/main/Android.mk => Android.mk | 2 +- ...AndroidManifest.xml => AndroidManifest.xml | 0 app/build.gradle | 17 ------------- build.gradle | 23 ------------------ ... => permissions_com.stevesoltys.backup.xml | 0 .../layout/activity_create_backup.xml | 0 .../main/res => res}/layout/activity_main.xml | 0 .../layout/activity_restore_backup.xml | 0 .../res => res}/layout/checked_list_item.xml | 0 .../layout/progress_popup_window.xml | 0 .../res => res}/mipmap-hdpi/ic_launcher.png | Bin .../res => res}/mipmap-mdpi/ic_launcher.png | Bin .../res => res}/mipmap-xhdpi/ic_launcher.png | Bin .../res => res}/mipmap-xxhdpi/ic_launcher.png | Bin .../mipmap-xxxhdpi/ic_launcher.png | Bin .../main/res => res}/values-w820dp/dimens.xml | 0 {app/src/main/res => res}/values/arrays.xml | 0 {app/src/main/res => res}/values/colors.xml | 0 {app/src/main/res => res}/values/dimens.xml | 0 {app/src/main/res => res}/values/strings.xml | 0 {app/src/main/res => res}/values/styles.xml | 0 settings.gradle | 1 - .../backup/activity/MainActivity.java | 0 .../activity/MainActivityController.java | 0 .../activity/backup/BackupObserver.java | 0 .../backup/BackupPopupWindowListener.java | 0 .../activity/backup/CreateBackupActivity.java | 0 .../CreateBackupActivityController.java | 0 .../restore/RestoreBackupActivity.java | 0 .../RestoreBackupActivityController.java | 0 .../activity/restore/RestoreObserver.java | 0 .../restore/RestorePopupWindowListener.java | 0 .../session/BackupManagerController.java | 0 .../backup/session/backup/BackupResult.java | 0 .../backup/session/backup/BackupSession.java | 0 .../session/backup/BackupSessionObserver.java | 0 .../backup/session/restore/RestoreResult.java | 0 .../session/restore/RestoreSession.java | 0 .../restore/RestoreSessionObserver.java | 0 .../ConfigurableBackupTransport.java | 0 .../ConfigurableBackupTransportService.java | 0 .../transport/component/BackupComponent.java | 0 .../transport/component/RestoreComponent.java | 0 .../ContentProviderBackupComponent.java | 0 .../ContentProviderBackupConfiguration.java | 0 ...entProviderBackupConfigurationBuilder.java | 0 .../provider/ContentProviderBackupState.java | 0 .../ContentProviderRestoreComponent.java | 0 .../provider/ContentProviderRestoreState.java | 0 ...ml => whitelist_com.stevesoltys.backup.xml | 0 50 files changed, 1 insertion(+), 42 deletions(-) rename app/src/main/Android.mk => Android.mk (93%) rename app/src/main/AndroidManifest.xml => AndroidManifest.xml (100%) delete mode 100644 app/build.gradle delete mode 100644 build.gradle rename app/src/main/permissions_com.stevesoltys.backup.xml => permissions_com.stevesoltys.backup.xml (100%) rename {app/src/main/res => res}/layout/activity_create_backup.xml (100%) rename {app/src/main/res => res}/layout/activity_main.xml (100%) rename {app/src/main/res => res}/layout/activity_restore_backup.xml (100%) rename {app/src/main/res => res}/layout/checked_list_item.xml (100%) rename {app/src/main/res => res}/layout/progress_popup_window.xml (100%) rename {app/src/main/res => res}/mipmap-hdpi/ic_launcher.png (100%) rename {app/src/main/res => res}/mipmap-mdpi/ic_launcher.png (100%) rename {app/src/main/res => res}/mipmap-xhdpi/ic_launcher.png (100%) rename {app/src/main/res => res}/mipmap-xxhdpi/ic_launcher.png (100%) rename {app/src/main/res => res}/mipmap-xxxhdpi/ic_launcher.png (100%) rename {app/src/main/res => res}/values-w820dp/dimens.xml (100%) rename {app/src/main/res => res}/values/arrays.xml (100%) rename {app/src/main/res => res}/values/colors.xml (100%) rename {app/src/main/res => res}/values/dimens.xml (100%) rename {app/src/main/res => res}/values/strings.xml (100%) rename {app/src/main/res => res}/values/styles.xml (100%) delete mode 100644 settings.gradle rename {app/src/main/java => src}/com/stevesoltys/backup/activity/MainActivity.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/activity/MainActivityController.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/activity/backup/BackupObserver.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/activity/backup/BackupPopupWindowListener.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/activity/backup/CreateBackupActivity.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/activity/backup/CreateBackupActivityController.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/activity/restore/RestoreBackupActivity.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/activity/restore/RestoreBackupActivityController.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/activity/restore/RestoreObserver.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/activity/restore/RestorePopupWindowListener.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/session/BackupManagerController.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/session/backup/BackupResult.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/session/backup/BackupSession.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/session/backup/BackupSessionObserver.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/session/restore/RestoreResult.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/session/restore/RestoreSession.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/session/restore/RestoreSessionObserver.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/ConfigurableBackupTransport.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/ConfigurableBackupTransportService.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/component/BackupComponent.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/component/RestoreComponent.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupComponent.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfiguration.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfigurationBuilder.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupState.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreComponent.java (100%) rename {app/src/main/java => src}/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreState.java (100%) rename app/src/main/whitelist_com.stevesoltys.backup.xml => whitelist_com.stevesoltys.backup.xml (100%) diff --git a/app/src/main/Android.mk b/Android.mk similarity index 93% rename from app/src/main/Android.mk rename to Android.mk index dac28272..7fd87ce7 100644 --- a/app/src/main/Android.mk +++ b/Android.mk @@ -21,6 +21,6 @@ LOCAL_PACKAGE_NAME := Backup LOCAL_MODULE_TAGS := optional LOCAL_REQUIRED_MODULES := com.stevesoltys.backup.xml LOCAL_PRIVILEGED_MODULE := true -LOCAL_SRC_FILES := $(call all-java-files-under, java) +LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res include $(BUILD_PACKAGE) diff --git a/app/src/main/AndroidManifest.xml b/AndroidManifest.xml similarity index 100% rename from app/src/main/AndroidManifest.xml rename to AndroidManifest.xml diff --git a/app/build.gradle b/app/build.gradle deleted file mode 100644 index 3e592589..00000000 --- a/app/build.gradle +++ /dev/null @@ -1,17 +0,0 @@ -apply plugin: 'com.android.application' - -android { - compileSdkVersion 26 - buildToolsVersion '26.0.1' - - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } -} - -dependencies { - compile fileTree(include: ['*.jar'], dir: 'libs') -} diff --git a/build.gradle b/build.gradle deleted file mode 100644 index c2eea8e2..00000000 --- a/build.gradle +++ /dev/null @@ -1,23 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. - -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } -} - -allprojects { - repositories { - jcenter() - } -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/app/src/main/permissions_com.stevesoltys.backup.xml b/permissions_com.stevesoltys.backup.xml similarity index 100% rename from app/src/main/permissions_com.stevesoltys.backup.xml rename to permissions_com.stevesoltys.backup.xml diff --git a/app/src/main/res/layout/activity_create_backup.xml b/res/layout/activity_create_backup.xml similarity index 100% rename from app/src/main/res/layout/activity_create_backup.xml rename to res/layout/activity_create_backup.xml diff --git a/app/src/main/res/layout/activity_main.xml b/res/layout/activity_main.xml similarity index 100% rename from app/src/main/res/layout/activity_main.xml rename to res/layout/activity_main.xml diff --git a/app/src/main/res/layout/activity_restore_backup.xml b/res/layout/activity_restore_backup.xml similarity index 100% rename from app/src/main/res/layout/activity_restore_backup.xml rename to res/layout/activity_restore_backup.xml diff --git a/app/src/main/res/layout/checked_list_item.xml b/res/layout/checked_list_item.xml similarity index 100% rename from app/src/main/res/layout/checked_list_item.xml rename to res/layout/checked_list_item.xml diff --git a/app/src/main/res/layout/progress_popup_window.xml b/res/layout/progress_popup_window.xml similarity index 100% rename from app/src/main/res/layout/progress_popup_window.xml rename to res/layout/progress_popup_window.xml diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/ic_launcher.png rename to res/mipmap-hdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/ic_launcher.png rename to res/mipmap-mdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to res/mipmap-xhdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to res/mipmap-xxhdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to res/mipmap-xxxhdpi/ic_launcher.png diff --git a/app/src/main/res/values-w820dp/dimens.xml b/res/values-w820dp/dimens.xml similarity index 100% rename from app/src/main/res/values-w820dp/dimens.xml rename to res/values-w820dp/dimens.xml diff --git a/app/src/main/res/values/arrays.xml b/res/values/arrays.xml similarity index 100% rename from app/src/main/res/values/arrays.xml rename to res/values/arrays.xml diff --git a/app/src/main/res/values/colors.xml b/res/values/colors.xml similarity index 100% rename from app/src/main/res/values/colors.xml rename to res/values/colors.xml diff --git a/app/src/main/res/values/dimens.xml b/res/values/dimens.xml similarity index 100% rename from app/src/main/res/values/dimens.xml rename to res/values/dimens.xml diff --git a/app/src/main/res/values/strings.xml b/res/values/strings.xml similarity index 100% rename from app/src/main/res/values/strings.xml rename to res/values/strings.xml diff --git a/app/src/main/res/values/styles.xml b/res/values/styles.xml similarity index 100% rename from app/src/main/res/values/styles.xml rename to res/values/styles.xml diff --git a/settings.gradle b/settings.gradle deleted file mode 100644 index e7b4def4..00000000 --- a/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include ':app' diff --git a/app/src/main/java/com/stevesoltys/backup/activity/MainActivity.java b/src/com/stevesoltys/backup/activity/MainActivity.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/MainActivity.java rename to src/com/stevesoltys/backup/activity/MainActivity.java diff --git a/app/src/main/java/com/stevesoltys/backup/activity/MainActivityController.java b/src/com/stevesoltys/backup/activity/MainActivityController.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/MainActivityController.java rename to src/com/stevesoltys/backup/activity/MainActivityController.java diff --git a/app/src/main/java/com/stevesoltys/backup/activity/backup/BackupObserver.java b/src/com/stevesoltys/backup/activity/backup/BackupObserver.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/backup/BackupObserver.java rename to src/com/stevesoltys/backup/activity/backup/BackupObserver.java diff --git a/app/src/main/java/com/stevesoltys/backup/activity/backup/BackupPopupWindowListener.java b/src/com/stevesoltys/backup/activity/backup/BackupPopupWindowListener.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/backup/BackupPopupWindowListener.java rename to src/com/stevesoltys/backup/activity/backup/BackupPopupWindowListener.java diff --git a/app/src/main/java/com/stevesoltys/backup/activity/backup/CreateBackupActivity.java b/src/com/stevesoltys/backup/activity/backup/CreateBackupActivity.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/backup/CreateBackupActivity.java rename to src/com/stevesoltys/backup/activity/backup/CreateBackupActivity.java diff --git a/app/src/main/java/com/stevesoltys/backup/activity/backup/CreateBackupActivityController.java b/src/com/stevesoltys/backup/activity/backup/CreateBackupActivityController.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/backup/CreateBackupActivityController.java rename to src/com/stevesoltys/backup/activity/backup/CreateBackupActivityController.java diff --git a/app/src/main/java/com/stevesoltys/backup/activity/restore/RestoreBackupActivity.java b/src/com/stevesoltys/backup/activity/restore/RestoreBackupActivity.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/restore/RestoreBackupActivity.java rename to src/com/stevesoltys/backup/activity/restore/RestoreBackupActivity.java diff --git a/app/src/main/java/com/stevesoltys/backup/activity/restore/RestoreBackupActivityController.java b/src/com/stevesoltys/backup/activity/restore/RestoreBackupActivityController.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/restore/RestoreBackupActivityController.java rename to src/com/stevesoltys/backup/activity/restore/RestoreBackupActivityController.java diff --git a/app/src/main/java/com/stevesoltys/backup/activity/restore/RestoreObserver.java b/src/com/stevesoltys/backup/activity/restore/RestoreObserver.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/restore/RestoreObserver.java rename to src/com/stevesoltys/backup/activity/restore/RestoreObserver.java diff --git a/app/src/main/java/com/stevesoltys/backup/activity/restore/RestorePopupWindowListener.java b/src/com/stevesoltys/backup/activity/restore/RestorePopupWindowListener.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/activity/restore/RestorePopupWindowListener.java rename to src/com/stevesoltys/backup/activity/restore/RestorePopupWindowListener.java diff --git a/app/src/main/java/com/stevesoltys/backup/session/BackupManagerController.java b/src/com/stevesoltys/backup/session/BackupManagerController.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/session/BackupManagerController.java rename to src/com/stevesoltys/backup/session/BackupManagerController.java diff --git a/app/src/main/java/com/stevesoltys/backup/session/backup/BackupResult.java b/src/com/stevesoltys/backup/session/backup/BackupResult.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/session/backup/BackupResult.java rename to src/com/stevesoltys/backup/session/backup/BackupResult.java diff --git a/app/src/main/java/com/stevesoltys/backup/session/backup/BackupSession.java b/src/com/stevesoltys/backup/session/backup/BackupSession.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/session/backup/BackupSession.java rename to src/com/stevesoltys/backup/session/backup/BackupSession.java diff --git a/app/src/main/java/com/stevesoltys/backup/session/backup/BackupSessionObserver.java b/src/com/stevesoltys/backup/session/backup/BackupSessionObserver.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/session/backup/BackupSessionObserver.java rename to src/com/stevesoltys/backup/session/backup/BackupSessionObserver.java diff --git a/app/src/main/java/com/stevesoltys/backup/session/restore/RestoreResult.java b/src/com/stevesoltys/backup/session/restore/RestoreResult.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/session/restore/RestoreResult.java rename to src/com/stevesoltys/backup/session/restore/RestoreResult.java diff --git a/app/src/main/java/com/stevesoltys/backup/session/restore/RestoreSession.java b/src/com/stevesoltys/backup/session/restore/RestoreSession.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/session/restore/RestoreSession.java rename to src/com/stevesoltys/backup/session/restore/RestoreSession.java diff --git a/app/src/main/java/com/stevesoltys/backup/session/restore/RestoreSessionObserver.java b/src/com/stevesoltys/backup/session/restore/RestoreSessionObserver.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/session/restore/RestoreSessionObserver.java rename to src/com/stevesoltys/backup/session/restore/RestoreSessionObserver.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/ConfigurableBackupTransport.java b/src/com/stevesoltys/backup/transport/ConfigurableBackupTransport.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/ConfigurableBackupTransport.java rename to src/com/stevesoltys/backup/transport/ConfigurableBackupTransport.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/ConfigurableBackupTransportService.java b/src/com/stevesoltys/backup/transport/ConfigurableBackupTransportService.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/ConfigurableBackupTransportService.java rename to src/com/stevesoltys/backup/transport/ConfigurableBackupTransportService.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/component/BackupComponent.java b/src/com/stevesoltys/backup/transport/component/BackupComponent.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/component/BackupComponent.java rename to src/com/stevesoltys/backup/transport/component/BackupComponent.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/component/RestoreComponent.java b/src/com/stevesoltys/backup/transport/component/RestoreComponent.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/component/RestoreComponent.java rename to src/com/stevesoltys/backup/transport/component/RestoreComponent.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupComponent.java b/src/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupComponent.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupComponent.java rename to src/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupComponent.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfiguration.java b/src/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfiguration.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfiguration.java rename to src/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfiguration.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfigurationBuilder.java b/src/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfigurationBuilder.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfigurationBuilder.java rename to src/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupConfigurationBuilder.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupState.java b/src/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupState.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupState.java rename to src/com/stevesoltys/backup/transport/component/provider/ContentProviderBackupState.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreComponent.java b/src/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreComponent.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreComponent.java rename to src/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreComponent.java diff --git a/app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreState.java b/src/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreState.java similarity index 100% rename from app/src/main/java/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreState.java rename to src/com/stevesoltys/backup/transport/component/provider/ContentProviderRestoreState.java diff --git a/app/src/main/whitelist_com.stevesoltys.backup.xml b/whitelist_com.stevesoltys.backup.xml similarity index 100% rename from app/src/main/whitelist_com.stevesoltys.backup.xml rename to whitelist_com.stevesoltys.backup.xml