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
# : << 'EOF' | |
# https://github.com/gpakosz/.tmux | |
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# | |
# ------------------------------------------------------------------------------ | |
# /!\ DO NOT EDIT THIS FILE | |
# instead, override your .local customization file copy, see README.md /!\ | |
# ------------------------------------------------------------------------------ |
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
allprojects { | |
def mappings = [ | |
'android.support.annotation': 'androidx.annotation', | |
'android.arch.lifecycle': 'androidx.lifecycle', | |
'android.support.v4.app.NotificationCompat': 'androidx.core.app.NotificationCompat', | |
'android.support.v4.app.ActivityCompat': 'androidx.core.app.ActivityCompat', | |
'android.support.v4.content.ContextCompat': 'androidx.core.content.ContextCompat', | |
'android.support.v13.app.FragmentCompat': 'androidx.legacy.app.FragmentCompat', | |
'android.arch.lifecycle.Lifecycle': 'androidx.lifecycle.Lifecycle', | |
'android.arch.lifecycle.LifecycleObserver': 'androidx.lifecycle.LifecycleObserver', |
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
In Unity Project: | |
* Check if there are no compile errors or warnings on other platforms (Desktop e.g.) | |
* Make sure you rebuild the latest library into Unity project (.aar on Android) | |
* Test all implemented features on all Android versions (oldest and newest), different devices and emulators, on iOS test on all devices | |
* Test if old features didn't break | |
* Check if no side plugins are in the project that could be submitted (e.g. Plugins/Editor/Rider) | |
* Check if no hardcoded API keys are remaining (Google Maps, Place Picker) | |
* Update documentation | |
* Check if README.txt release notes in project are up-to-date |
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
using UnityEngine; | |
public class AlarmClock : MonoBehaviour | |
{ | |
const string ACTION_SET_ALARM = "android.intent.action.SET_ALARM"; | |
const string EXTRA_HOUR = "android.intent.extra.alarm.HOUR"; | |
const string EXTRA_MINUTES = "android.intent.extra.alarm.MINUTES"; | |
const string EXTRA_MESSAGE = "android.intent.extra.alarm.MESSAGE"; | |
public void OnClick() |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MyPluginIsBananas : MonoBehaviour | |
{ | |
const string ToastClassName = "android.widget.Toast"; | |
public void OnMyButtonClick() | |
{ |
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
using UnityEngine; | |
using System.IO; | |
using UnityEditor; | |
public static class DumpEditorTextures | |
{ | |
const string AssetsFolder = "Assets"; | |
const string TexturesDestFolderNamePro = "TexturesPro"; | |
const string TexturesDestFolderNameNormal = "TexturesNormal"; | |
static readonly string TexturesDestPathPro = Path.Combine(AssetsFolder, TexturesDestFolderNamePro); |
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/bash | |
MAIN=develop | |
BRANCHES=$(git branch --merged $MAIN | grep -v -e 'master\|staging\|develop\|\*') | |
echo Branches merged into $MAIN: | |
echo $BRANCHES | tr " " "\n" | |
read -p "Delete these branches (y/n)? " answer |
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
#if UNITY_ANDROID | |
using UnityEngine; | |
using System; | |
public static class AndroidNativePicker | |
{ | |
public delegate void OnDatePicked(int year,int month,int day); | |
public delegate void OnTimePicked(int hourOfDay, int minute); | |
public static void ShowDatePicker(OnDatePicked callback) |
NewerOlder