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
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161892865 - gapps-L-4-21-15.zip) | |
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip) | |
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip) | |
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip) |
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
<lint> | |
<!--Previous rules omitted for brevity--> | |
<issue id="ConvertToWebp" severity="error" /> | |
</lint> |
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
#!/bin/sh | |
echo "Running the Lint in Git's pre-push hook" | |
./gradlew lintRelease | |
exit $? |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
tools:context=".MainActivity"> | |
<TextView |
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
package aga.android.viewbindingtest | |
import android.os.Bundle | |
import android.widget.Button | |
import android.widget.ImageView | |
import android.widget.TextView | |
import androidx.appcompat.app.AppCompatActivity | |
import butterknife.BindView | |
import butterknife.ButterKnife |
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
/** Log a debug message with optional format args. */ | |
public void d(String message, Object... args) { | |
prepareLog(Log.DEBUG, null, message, args); | |
} |
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
private void prepareLog(int priority, Throwable t, String message, Object... args) { | |
// Consume tag even when message is not loggable so that next message is correctly tagged. | |
String tag = getTag(); | |
if (!isLoggable(tag, priority)) { | |
return; | |
} | |
// some code omitted for brevity |
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
@Nullable | |
String getTag() { | |
String tag = explicitTag.get(); | |
if (tag != null) { | |
explicitTag.remove(); | |
} | |
return tag; | |
} |
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
/** Set a one-time tag for use on the next logging call. */ | |
@NotNull | |
public static Tree tag(String tag) { | |
Tree[] forest = forestAsArray; | |
//noinspection ForLoopReplaceableByForEach | |
for (int i = 0, count = forest.length; i < count; i++) { | |
forest[i].explicitTag.set(tag); | |
} | |
return TREE_OF_SOULS; | |
} |
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
@Override final String getTag() { | |
String tag = super.getTag(); | |
if (tag != null) { | |
return tag; | |
} | |
// DO NOT switch this to Thread.getCurrentThread().getStackTrace(). The test will pass | |
// because Robolectric runs them on the JVM but on Android the elements are different. | |
StackTraceElement[] stackTrace = new Throwable().getStackTrace(); | |
if (stackTrace.length <= CALL_STACK_INDEX) { |
OlderNewer