diff --git a/android/PhysicalWeb/.gitignore b/android/PhysicalWeb/.gitignore index ba4ecba0..58e0acf6 100644 --- a/android/PhysicalWeb/.gitignore +++ b/android/PhysicalWeb/.gitignore @@ -1,5 +1,10 @@ +# Keystore files for signing +*.jks +*.keystore + .gradle -local.properties .idea .DS_Store build +local.properties +signing.properties diff --git a/android/PhysicalWeb/app/build.gradle b/android/PhysicalWeb/app/build.gradle index 7f182430..3fa040a2 100644 --- a/android/PhysicalWeb/app/build.gradle +++ b/android/PhysicalWeb/app/build.gradle @@ -18,10 +18,31 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } + + if(new File("signing.properties").exists()) { + Properties signingProperties = new Properties() + signingProperties.load(new FileInputStream(new File('signing.properties'))) + + signingConfigs { + release { + storeFile new File(signingProperties['storeFile']) + storePassword signingProperties['storePassword'] + keyAlias signingProperties['keyAlias'] + keyPassword signingProperties['keyPassword'] + } + } + + buildTypes { + release { + signingConfig signingConfigs.release + } + } + } } repositories{