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
{ | |
"data": { | |
"v1": [ | |
{ | |
"action": "purchase_boost", | |
"action_text": "Behold the {beans} <- picture of beans", | |
"header_text": "Beans Icon Test", | |
"id": "1034", | |
"image_url": "https://d1brdre1rcy624.cloudfront.net/action_card_images/2021/04/21/cadbury_creme_egg.jpg", | |
"message_text": "Testing bean image in CTA." |
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.lastminutedevice.gists; | |
import android.content.Context; | |
import androidx.test.platform.app.InstrumentationRegistry; | |
import com.google.firebase.FirebaseApp; | |
import org.robolectric.annotation.Implementation; | |
import org.robolectric.annotation.Implements; |
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
#!/bin/bash | |
# To use Charles Proxy with SSL: | |
# (1) On the device, open a browser and visit https://chls.pro/ssl to download a security certificate | |
# (2) Open the certificate, and when it installs select "VPN and apps" | |
# (3) Open up wifi settings, under "Advanced" set the proxy address to your laptop's IP address, port 8888 | |
# (4) Run this script from the app module before building the app so that it will allow proxying with a user-installed certificate (such as you installed in step (2)) | |
# | |
# Don't forget to revert these changes when you're done if you don't mean to commit them. |
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
// See current activity name | |
adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp' |
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
adb shell | |
run-as <package name> |
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.os.Handler; | |
import android.os.Message; | |
import android.support.annotation.NonNull; | |
import android.widget.EditText; | |
import java.lang.ref.WeakReference; | |
/** | |
* Delay setting the error message on an EditText. Avoid leaking that View, despite delay. | |
* <p> |
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 argparse | |
import re | |
import sys | |
regex = re.compile(r'<string .*>(.*?)<\/string>') | |
def scrape_line(line): | |
matched = re.findall(regex, line) | |
if matched is None or len(matched) == 0: |
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.app.Activity; | |
import android.graphics.Color; | |
import android.graphics.PorterDuff; | |
import android.graphics.PorterDuffColorFilter; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.ViewGroup; | |
import android.widget.ImageView; |