aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Android_Studio
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-05-07 19:20:41 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-05-07 19:20:41 +0300
commitae628de00d95cfa2982ee9f90ac0d1a44ca80109 (patch)
tree90e7d8f362970ae6b5c56703de2997b415a9fc09 /Software/Android_Studio
parentb6a210c5b82c2cf0215e8cdb61e1ab2c1b43f0dd (diff)
downloadTango-ae628de00d95cfa2982ee9f90ac0d1a44ca80109.tar.gz
Tango-ae628de00d95cfa2982ee9f90ac0d1a44ca80109.zip
Working on TCC...
Diffstat (limited to 'Software/Android_Studio')
-rw-r--r--Software/Android_Studio/ColorCapture/app/build.gradle105
-rw-r--r--Software/Android_Studio/KeyStore/private_key.pepkbin0 -> 1776 bytes
-rw-r--r--Software/Android_Studio/KeyStore/tcc_key.jksbin0 -> 2287 bytes
3 files changed, 61 insertions, 44 deletions
diff --git a/Software/Android_Studio/ColorCapture/app/build.gradle b/Software/Android_Studio/ColorCapture/app/build.gradle
index 8a0752b39..3aa149370 100644
--- a/Software/Android_Studio/ColorCapture/app/build.gradle
+++ b/Software/Android_Studio/ColorCapture/app/build.gradle
@@ -52,63 +52,80 @@ android {
}
}
- splits {
+// splits {
+//
+// // Configures multiple APKs based on ABI.
+// abi {
+//
+// // Enables building multiple APKs per ABI.
+// enable true
+//
+// // By default all ABIs are included, so use reset() and include to specify that we only
+// // want APKs for x86 and x86_64.
+//
+// // Resets the list of ABIs that Gradle should create APKs for to none.
+// reset()
+//
+// // Specifies a list of ABIs that Gradle should create APKs for.
+// include "armeabi-v7a", "arm64-v8a", "x86"
+//
+// // Specifies that we do not want to also generate a universal APK that includes all ABIs.
+// universalApk false
+// }
+// }
- // Configures multiple APKs based on ABI.
+ // Add this block and enable/disable the parameters as follows
+ bundle {
+ density {
+ // Different APKs are generated for devices with different screen densities; true by default.
+ enableSplit false
+ }
abi {
-
- // Enables building multiple APKs per ABI.
- enable true
-
- // By default all ABIs are included, so use reset() and include to specify that we only
- // want APKs for x86 and x86_64.
-
- // Resets the list of ABIs that Gradle should create APKs for to none.
- reset()
-
- // Specifies a list of ABIs that Gradle should create APKs for.
- include "armeabi-v7a", "arm64-v8a", "x86"
-
- // Specifies that we do not want to also generate a universal APK that includes all ABIs.
- universalApk false
+ // Different APKs are generated for devices with different CPU architectures; true by default.
+ enableSplit true
+ }
+ language {
+ // This is disabled so that the App Bundle does NOT split the APK for each language.
+ // We're gonna use the same APK for all languages.
+ enableSplit false
}
}
}
// Map for the version code that gives each ABI a value.
-ext.abiCodes = ['armeabi-v7a':1, 'arm64-v8a':2, 'x86':3]
+//ext.abiCodes = ['armeabi-v7a':1, 'arm64-v8a':2, 'x86':3]
-import com.android.build.OutputFile
+//import com.android.build.OutputFile
// For each APK output variant, override versionCode with a combination of
// ext.abiCodes * 1000 + variant.versionCode. In this example, variant.versionCode
// is equal to defaultConfig.versionCode. If you configure product flavors that
// define their own versionCode, variant.versionCode uses that value instead.
-android.applicationVariants.all { variant ->
-
- // Assigns a different version code for each output APK
- // other than the universal APK.
- variant.outputs.each { output ->
-
- // Stores the value of ext.abiCodes that is associated with the ABI for this variant.
- def baseAbiVersionCode =
- // Determines the ABI for this variant and returns the mapped value.
- project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
-
- // Because abiCodes.get() returns null for ABIs that are not mapped by ext.abiCodes,
- // the following code does not override the version code for universal APKs.
- // However, because we want universal APKs to have the lowest version code,
- // this outcome is desirable.
- if (baseAbiVersionCode != null) {
-
- // Assigns the new version code to versionCodeOverride, which changes the version code
- // for only the output APK, not for the variant itself. Skipping this step simply
- // causes Gradle to use the value of variant.versionCode for the APK.
- output.versionCodeOverride =
- baseAbiVersionCode * 1000 + variant.versionCode
- }
- }
-}
+//android.applicationVariants.all { variant ->
+//
+// // Assigns a different version code for each output APK
+// // other than the universal APK.
+// variant.outputs.each { output ->
+//
+// // Stores the value of ext.abiCodes that is associated with the ABI for this variant.
+// def baseAbiVersionCode =
+// // Determines the ABI for this variant and returns the mapped value.
+// project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
+//
+// // Because abiCodes.get() returns null for ABIs that are not mapped by ext.abiCodes,
+// // the following code does not override the version code for universal APKs.
+// // However, because we want universal APKs to have the lowest version code,
+// // this outcome is desirable.
+// if (baseAbiVersionCode != null) {
+//
+// // Assigns the new version code to versionCodeOverride, which changes the version code
+// // for only the output APK, not for the variant itself. Skipping this step simply
+// // causes Gradle to use the value of variant.versionCode for the APK.
+// output.versionCodeOverride =
+// baseAbiVersionCode * 1000 + variant.versionCode
+// }
+// }
+//}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
diff --git a/Software/Android_Studio/KeyStore/private_key.pepk b/Software/Android_Studio/KeyStore/private_key.pepk
new file mode 100644
index 000000000..a714f2044
--- /dev/null
+++ b/Software/Android_Studio/KeyStore/private_key.pepk
Binary files differ
diff --git a/Software/Android_Studio/KeyStore/tcc_key.jks b/Software/Android_Studio/KeyStore/tcc_key.jks
new file mode 100644
index 000000000..f0197550f
--- /dev/null
+++ b/Software/Android_Studio/KeyStore/tcc_key.jks
Binary files differ