- 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.all { | |
resolutionStrategy.force "com.android.support:support-annotations:$rootProject.supportLibraryVersion" | |
resolutionStrategy.force "com.android.support:support-v4:$rootProject.supportLibraryVersion" | |
resolutionStrategy.force "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion" | |
resolutionStrategy.force "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion" | |
resolutionStrategy.force "com.android.support:design:$rootProject.supportLibraryVersion" | |
} |
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 AndroidApplication extends MultiDexApplication { | |
public static final String TAG = AndroidApplication.class.getSimpleName(); | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
registerComponentCallbacks(new ComponentCallback()); | |
} | |
private class ComponentCallback implements ComponentCallbacks2 { |
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
package com.tsview.robolectric; | |
import android.app.Activity; | |
import android.app.Application; | |
import android.content.Intent; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.Fragment; |
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 (C) 2016 Jeff Gilfelt. | |
* | |
* 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
// your code | |
apply from: "build-plugins/idea-gradle-sources.gradle" |
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
/* | |
* 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
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
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); | |
} |
NewerOlder