diff --git a/android/.gitignore b/android/.gitignore index 17076f1..b0f90cf 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -1,16 +1,42 @@ -*.iml -.gradle -/local.properties -/.idea/caches -/.idea/libraries -/.idea/modules.xml -/.idea/workspace.xml -/.idea/navEditor.xml -/.idea/assetWizardSettings.xml -.DS_Store -/build -/captures -.externalNativeBuild -.cxx +# Gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) local.properties + +# Log/OS Files +*.log + +# Android Studio generated files and folders +captures/ +.externalNativeBuild/ +.cxx/ +*.apk +output.json + +# IntelliJ +*.iml +.idea/ +misc.xml +deploymentTargetDropDown.xml +render.experimental.xml + +# Keystore files +*.jks +*.keystore + +# Google Services (e.g. APIs or Firebase) +google-services.json + +# Android Profiling +*.hprof + +# Misc Files +.DS_Store + +# API Keys /app/src/main/java/com/pushdeer/os/AppKeys.kt + +# Signing Keys +/key_debug.properties diff --git a/android/.idea/.gitignore b/android/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/android/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/android/.idea/compiler.xml b/android/.idea/compiler.xml deleted file mode 100644 index fb7f4a8..0000000 --- a/android/.idea/compiler.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/android/.idea/gradle.xml b/android/.idea/gradle.xml deleted file mode 100644 index 2182cf6..0000000 --- a/android/.idea/gradle.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/android/.idea/inspectionProfiles/Project_Default.xml b/android/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 2842237..0000000 --- a/android/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - \ No newline at end of file diff --git a/android/.idea/misc.xml b/android/.idea/misc.xml deleted file mode 100644 index feaa15e..0000000 --- a/android/.idea/misc.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/android/.idea/vcs.xml b/android/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/android/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index c3ac4de..b75f254 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -4,14 +4,19 @@ plugins { id 'kotlin-kapt' } -android { +def debugKeyProps = new Properties() +def debugKeyPropsFile = rootProject.file('key_debug.properties') +if (debugKeyPropsFile.exists()) { + debugKeyProps.load(new FileInputStream(debugKeyPropsFile)) +} +android { signingConfigs { debug { - storeFile file('/Users/wolf/Documents/com.wh.pushdeer') - storePassword 'wh.pushdeer' - keyAlias 'whpushdeer' - keyPassword 'wh.pushdeer' + storeFile file(debugKeyProps['storeFile']) + storePassword debugKeyProps['storePassword'] + keyAlias debugKeyProps['keyAlias'] + keyPassword debugKeyProps['keyPassword'] } }