Skip to content

Instantly share code, notes, and snippets.

View pandelisgreen13's full-sized avatar

Pantelis Chasapis pandelisgreen13

  • Athens, Greece
View GitHub Profile
@badsyntax
badsyntax / android-emulator-setup.yml
Created August 4, 2021 12:39
Setup the android emulator on Azure Devops Pipelines
# NOTE: must be run on a MacOS Agent!
steps:
- script: |
# Install AVD files
yes | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;default;x86_64'
yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
# Create emulator
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n Pixel_API_29_AOSP -d pixel --package 'system-images;android-29;default;x86_64' --force
@tomaszpolanski
tomaszpolanski / Movie.kt
Last active August 28, 2024 10:14
Parcelize testing
import android.annotation.SuppressLint
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@SuppressLint("ParcelCreator") // IntelliJ Issue https://youtrack.jetbrains.com/issue/KT-19300
@Parcelize
data class Movie(val title: String) : Parcelable
@diegopacheco
diegopacheco / build.gradle
Created September 11, 2015 23:04
How to Run BASH script from Gradle Task?
task hello(type: Exec) {
executable "sh"
args "-c", "echo 'hello from your shell'"
}