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
case ("EMPTY"): | |
if (client.getLimit() > 0) { | |
final SharedPreferences settings = getSharedPreferences(Config.PREFERENCE_FILE, MODE_PRIVATE); | |
SharedPreferences.Editor editor = settings.edit(); | |
editor.putLong(ZAIM_WAITING_LIMIT_TIME, System.currentTimeMillis()); | |
editor.apply(); | |
} | |
if (!limitTimerExpired()) { | |
return ZaimStatus.ZAIM_LIMIT_TIMER.getValue(); | |
} else { |
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
[Gradle User Guide](https://docs.gradle.org/current/userguide/userguide.html) | |
The Java Plugin - https://docs.gradle.org/current/userguide/java_plugin.html | |
New Build System(changelog) - http://tools.android.com/tech-docs/new-build-system | |
android-gradle-dsl - https://github.com/google/android-gradle-dsl | |
Gradle Plugin User Guide - http://tools.android.com/tech-docs/new-build-system/user-guide | |
manifest merger - http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger | |
Build Workflow - http://tools.android.com/tech-docs/new-build-system/build-workflow | |
лекции | |
Евгений Борисов — Power of Gradle - http://www.youtube.com/watch?v=NZJTYPLb0iE |
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.libraryVariants.all { variant -> | |
tasks.create(name: "fatJar${variant.name.capitalize()}", type: Jar, dependsOn: assembleRelease) { | |
doFirst { | |
baseName = project.artifactId + "-" + variant.name | |
destinationDir = file('output') | |
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | |
from zipTree(tasks.getByName("package${variant.name.capitalize()}Jar").outputs.files.singleFile) | |
def closure = { file -> | |
if (file.name.endsWith('.aar')) { | |
println file.name |