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
import android.graphics.Bitmap | |
import android.graphics.Color | |
import android.widget.ImageView | |
import androidx.annotation.ColorRes | |
import androidx.core.content.ContextCompat.getColor | |
import androidx.databinding.BindingAdapter | |
import coil.api.load | |
object BindingAdapters { |
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 crawlers | |
import java.security.KeyManagementException | |
import java.security.NoSuchAlgorithmException | |
import java.security.SecureRandom | |
import java.security.cert.X509Certificate | |
import javax.net.ssl.SSLContext |
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
git-rename-remote-branch() { | |
currentbranch="$(git branch --show-current)" # not the best method for scripting | |
git branch -m $1 | |
git push origin :$currentbranch $1 | |
git push origin -u $1 | |
} |
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 | |
# USAGE (make sure to use quotes when setting URI) | |
# ./openDeepLink.sh -u "your://deeplink?with=some_param&another=param" | |
# When using an Android emulator, use "-e" option | |
# ./openDeepLink.sh -e -u "your://deeplink" | |
# For iOS, use "-i" option | |
#./openDeepLink.sh -i -u "your://ios?deeplink=here" | |
while getopts "ieu:" opt; do |
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
- name: Cache flutter | |
uses: actions/cache@v2 | |
with: | |
path: | | |
${{ env.FLUTTER_HOME }}/bin | |
key: install-flutter-1.22.6 | |
restore-keys: | | |
install-flutter- |
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
- name: Cache pubspec dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
${{ env.FLUTTER_HOME }}/.pub-cache | |
**/.packages | |
**/.flutter-plugins | |
**/.flutter-plugin-dependencies | |
**/.dart_tool/package_config.json | |
key: build-pubspec-${{ hashFiles('**/pubspec.lock') }} |
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
- name: Cache build runner | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/.dart_tool | |
**/*.g.dart | |
**/*.mocks.dart | |
**/*.config.dart | |
key: build-runner-${{ hashFiles('**/asset_graph.json', '**/*.dart', '**/pubspec.lock', '**/outputs.json') }} | |
restore-keys: | |
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
name: PR Verification | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
jobs: | |
pr-verification: | |
runs-on: ubuntu-latest |
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
# alias for disabling Android File Transfer agent | |
disableFileTransfer(){ | |
PID=$(ps -fe | grep "[A]ndroid File Transfer Agent" | awk '{print $2}') | |
if [[ -n $PID ]]; | |
then | |
kill $PID | |
fi | |
mv "/Applications/Android File Transfer.app/Contents/Helpers/Android File Transfer Agent.app" "/Applications/Android File Transfer.app/Contents/Helpers/Android File Transfer Agent DISABLED.app" | |
mv "${HOME}/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app" "${HOME}/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent DISABLED.app" | |
osascript -e 'tell application "System Events" to delete every login item whose name is "Android File Transfer Agent"' |