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.os.Build; | |
import android.support.annotation.RequiresApi; | |
import android.support.v7.widget.AppCompatImageView; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import static android.view.MotionEvent.ACTION_DOWN; | |
import static android.view.MotionEvent.ACTION_MOVE; |
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 ReactUpdater extends IntentService { | |
private static final String BUNDLE_API_KEY = "serve"; | |
private static final String INITIAL_BUNDLE_PATH = "assets://index.android.bundle"; | |
private static final String LAST_UPDATED_KEY = "last_updated"; | |
private static final String MAPPINGS_KEY = "name"; | |
private static final String SETUP_KEY = "setup_3.13.0"; | |
private static final String SHARED_PREFERENCE_NAME = "com.myntra.update.react"; | |
private static final String TAG; | |
private static final String VERSION_KEY = "version"; |
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 FlagPainter { | |
private static final int PENTAGON = 5; | |
private static final float ROTATE = -18F; | |
private Bitmap drawStar(int size) { | |
Path path; | |
Paint paint = new Paint(); | |
Matrix matrix = new Matrix(); | |
paint.setColor(Color.YELLOW); |