This file contains 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
ext { | |
playServices = '8.3.0' | |
supportVersion = '23.1.1' | |
} | |
dependencies { | |
compile "com.android.support:appcompat-v7:${supportVersion}" | |
compile "com.android.support:recyclerview-v7:${supportVersion}" | |
compile "com.android.support:cardview-v7:${supportVersion}" | |
compile "com.android.support:design:${supportVersion}" |
This file contains 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
dependencies { | |
compile 'com.android.support:appcompat-v7:23.1.1' | |
compile 'com.android.support:cardview-v7:23.1.1' | |
compile 'com.android.support:design:23.1.1' | |
... | |
compile 'com.google.android.gms:play-services-ads:8.3.0' | |
compile 'com.google.android.gms:play-services-appindexing:8.3.0' | |
compile 'com.google.android.gms:play-services-base:8.3.0' | |
... | |
} |
This file contains 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
apply from: rootProject.file('release.gradle') | |
... | |
android { | |
... | |
buildTypes { | |
release { | |
... | |
signingConfig signingConfigs.release | |
} | |
} |
This file contains 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.signingConfigs { | |
release { | |
keyAlias 'com.example.app' | |
keyPassword 'key password' | |
storeFile rootProject.file('release.keystore') | |
storePassword 'store password' | |
} | |
} |
This file contains 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 { | |
... | |
defaultConfig { ... } | |
signingConfigs { | |
release { | |
storeFile file("myreleasekey.keystore") | |
storePassword "password" | |
keyAlias "MyReleaseKey" | |
keyPassword "password" |
This file contains 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
/** | |
* This class allows to inject into objects through a base class, | |
* so we don't have to repeat injection code everywhere. | |
* | |
* The performance drawback is about 0.013 ms per injection on a very slow device, | |
* which is negligible in most cases. | |
* | |
* Example: | |
* <pre>{@code |