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.annotation.TargetApi; | |
| import android.content.Context; | |
| import android.content.res.Resources; | |
| import android.graphics.RectF; | |
| import android.os.Build; | |
| import android.text.Layout.Alignment; | |
| import android.text.StaticLayout; | |
| import android.text.TextPaint; | |
| import android.text.method.TransformationMethod; | |
| import android.util.AttributeSet; |
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.content.Context; | |
| import android.content.res.Resources; | |
| import android.content.res.TypedArray; | |
| import android.database.DataSetObserver; | |
| import android.graphics.Canvas; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Build; | |
| import android.os.Bundle; | |
| import android.os.Parcel; |
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
| find ~/projects -maxdepth 5 -type d -name 'build' | xargs -n 1 tmutil addexclusion |
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
| #!/usr/bin/env bash | |
| ############ | |
| # https://github.com/microsoft/appcenter/blob/master/sample-build-scripts/flutter/ios-build/appcenter-post-clone.sh | |
| ########### | |
| # fail if any command fails | |
| set -e | |
| # debug log | |
| set -x |
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
| #!/usr/bin/env bash | |
| ################## | |
| # https://github.com/microsoft/appcenter/blob/master/sample-build-scripts/flutter/android-build/appcenter-post-clone.sh | |
| ################## | |
| cd .. | |
| # fail if any command fails | |
| set -e |
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 ForceLocaleRule implements TestRule { | |
| private final Locale mTestLocale; | |
| private Locale mDeviceLocale; | |
| public ForceLocaleRule(Locale testLocale) { | |
| mTestLocale = testLocale; | |
| } | |
| @Override |
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
| @RunWith(AndroidJUnit4.class) | |
| public class MyActivityTest { | |
| @ClassRule | |
| public static final ForceLocaleRule localeTestRule = new ForceLocaleRule(Locale.UK); | |
| @Rule | |
| public ActivityTestRule<MyActivity> mMyActivityRule = new ActivityTestRule<>(MyActivity.class); | |
| private Context mContext; |
OlderNewer