This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| android { | |
| applicationVariants.all { variant -> | |
| def flavor = variant.mergedFlavor | |
| def name = flavor.getVersionName() | |
| def versionName = name + '-' + variant.properties.get('flavorName') | |
| if (variant.buildType.isDebuggable()) { | |
| versionName += '-debug'; | |
| } | |
| flavor.versionName = versionName; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Simply add this to your .bashrc, .zshrc or .whateverrc and re-source it. | |
| # Afterwards you can use `gw` to invoke your local gradle wrapper if it exists. | |
| function gw { | |
| if [ -x "gradlew" ]; then | |
| ./gradlew $@ | |
| else | |
| gradle $@ | |
| fi | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -Xms1G | |
| -Xmx8G | |
| -XX:MaxPermSize=4G | |
| -XX:ReservedCodeCacheSize=512m | |
| -ea | |
| -Dsun.io.useCanonCaches=false | |
| -Djava.net.preferIPv4Stack=true | |
| -Djna.nosys=true | |
| -Djna.boot.library.path= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git rm -r --cached && git add . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Build & extract a set of apk from an aab for a specific device and install the results on it. | |
| # | |
| # This needs https://github.com/google/bundletool to be available as `bundletool`. | |
| # Also **exactly** one device needs to be connected to adb. | |
| # Usage: installFromBundle bundle.aab | |
| # optional `--extract-apks` to keep the set on your workstation as well. | |
| basename=${1%%.*} | |
| keystore="~/.android/debug.keystore" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Copyright 2020 Google LLC. | |
| SPDX-License-Identifier: Apache-2.0 */ | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:dist="http://schemas.android.com/apk/distribution" | |
| package="com.google.android.samples.playcore.picture"> | |
| <uses-feature android:name="android.hardware.camera" android:required="true" /> | |
| <dist:module dist:title="@string/module_feature_picture"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Use Non-ASCII Font" : false, | |
| "Tags" : [ | |
| ], | |
| "Ansi 12 Color" : { | |
| "Red Component" : 0.32549019607843138, | |
| "Color Space" : "sRGB", | |
| "Blue Component" : 1, | |
| "Alpha Component" : 1, |
OlderNewer