Original solution sacrifices new api lint check.
Here my solution:
int minSdk = hasProperty('minSdk') ? minSdk.toInteger() : 16
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
Original solution sacrifices new api lint check.
Here my solution:
int minSdk = hasProperty('minSdk') ? minSdk.toInteger() : 16
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
| public class AccountAuthenticator extends AbstractAccountAuthenticator { | |
| private final Context context; | |
| @Inject @ClientId String clientId; | |
| @Inject @ClientSecret String clientSecret; | |
| @Inject ApiService apiService; | |
| public AccountAuthenticator(Context context) { | |
| super(context); |
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- | |
| * ripple effect (Lollipop only) -- "colorControlHighlight" | |
| Status Bar: | |
| ------------ | |
| * background (Lollipop only) - "colorPrimaryDark" |
| // You can place it in the root build.gradle | |
| allprojects { | |
| tasks.withType(JavaForkOptions) { | |
| // Forked processes like GradleWorkerMain for tests won't steal focus! | |
| jvmArgs '-Djava.awt.headless=true' | |
| } | |
| } |
| #!/bin/sh | |
| # License for any modification to the original (linked below): | |
| # ---------------------------------------------------------------------------- | |
| # "THE BEER-WARE LICENSE" (Revision 42): | |
| # Sebastiano Poggi wrote this file. As long as you retain this notice you | |
| # can do whatever you want with this stuff. If we meet some day, and you think | |
| # this stuff is worth it, you can buy me a beer in return. | |
| # ---------------------------------------------------------------------------- | |
| # | |
| # Based upon http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html |
| import org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| import org.gradle.plugins.ide.idea.IdeaPlugin | |
| import org.gradle.tooling.BuildException | |
| class JavaAptPlugin implements Plugin<Project> { | |
| @Override | |
| void apply(Project project) { | |
| def aptConfiguration = project.configurations.create 'javapt' |
| import java.text.ParseException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import java.util.Locale; | |
| import java.util.TimeZone; | |
| public class SimpleDateFormatThreadSafe { | |
| private final ThreadLocal<SimpleDateFormat> localSimpleDateFormat; |
| :android:newRelicDeinstrumentTask | |
| [newrelic.info] Deinstrumenting... | |
| :android:crashlyticsStoreDeobsAlphaDebug | |
| :android:crashlyticsUploadDeobsAlphaDebug | |
| :android:crashlyticsCleanupResourcesAfterUploadAlphaDebug | |
| ...removing crashlytics.properties | |
| :android:compileAlphaDebugNdk | |
| :android:processAlphaDebugJavaRes UP-TO-DATE | |
| :android:validateDebugSigning | |
| :android:packageAlphaDebug |
| // NOTE: `OperatorSubscribeUntil` class is borrowed from @dlew's PR (https://github.com/dlew/RxAndroid/blob/dlew/lifecycle-observable/rxandroid/src/main/java/rx/android/lifecycle/OperatorSubscribeUntil.java) |
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| jcenter() | |
| maven { | |
| url "https://oss.sonatype.org/content/repositories/snapshots" | |
| } | |
| } |