- https://github.com/nrudenko/gradle-android-cq-plugin
- http://plugins.jetbrains.com/plugin/1065
- https://github.com/jshiell/checkstyle-idea
- https://www.openhub.net/p/checkstyle-idea
- https://github.com/sethrylan/rosette/blob/master/gradle/checkstyle.gradle
- https://gist.github.com/shareme/4197561
- http://stackoverflow.com/questions/9339804/where-can-i-find-checkstyle-config-for-android-coding-style
- http://stackoverflow.com/questions/11229217/checkstyle-plugin-for-idea-java-way-of-warnings-presentation-and-automatic-fix
- http://stackoverflow.com/questions/17050654/get-android-gradle-plugin-checkstyle-working-together-command-line-usage
- http://sethrylan.org/2013/07/14/gradle-android-findbugs.html
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
| configurations { | |
| apt | |
| } | |
| dependencies { | |
| compile 'com.squareup.dagger:dagger:1.1.0' | |
| apt 'com.squareup.dagger:dagger-compiler:1.1.0' | |
| } | |
| android.applicationVariants.all { variant -> |
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
| apply from: '../calabash-tests/calabash.gradle' | |
| calabashTest { | |
| calabashPath "calabash-tests" | |
| } |
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
| import android.text.SpannableStringBuilder; | |
| import java.util.ArrayDeque; | |
| import java.util.Deque; | |
| import static android.text.Spanned.SPAN_INCLUSIVE_EXCLUSIVE; | |
| /** A {@link SpannableStringBuilder} wrapper whose API doesn't make me want to stab my eyes out. */ | |
| public class Truss { | |
| private final SpannableStringBuilder builder; | |
| private final Deque<Span> stack; |
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
| public class AdMobPokerExampleActivity extends Activity { | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| AdMobPoker.track(findViewById(R.id.adView), savedInstanceState); | |
| } |
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
| RetrofitService.doTheThing(params) // Your typical API call | |
| .subscribeOn(Schedulers.io()) // Execute API call on IO thread | |
| .observeOn(AndroidSchedulers.mainThread()) // Execute observers on Android's main thread | |
| .subscribe(results -> handle(results)); // Handling the results of the API call |
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 2014 Chris Banes | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| configurations { | |
| codequality | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| codequality 'com.puppycrawl.tools:checkstyle:5.6' |
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
| // your code | |
| apply from: "build-plugins/idea-gradle-sources.gradle" |
OlderNewer