Skip to content

Instantly share code, notes, and snippets.

package pntanasis.master_ex.android;
import pntanasis.master_ex.android.Synthesizer.Note0;
import android.app.Activity;
import android.os.Bundle;
public class AudioSynthesisDemoActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
@TheDancerCodes
TheDancerCodes / README-Template.md
Created July 17, 2017 05:16 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Android Application Rules"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>Custom ruleset for Android application</description>
<exclude-pattern>.*/R.java</exclude-pattern>
@TheDancerCodes
TheDancerCodes / config.yml
Created October 11, 2018 16:50
This gist contains the build pipeline for one of our internal products using Circle CI, Firebase TestLab and GCP (Google Cloud Platform)
default: &defaults
docker:
- image: circleci/android:api-26-alpha
working_directory: ~/repo
environment:
TERM: dumb
# Customize the JVM maximuum heap limit
_JAVA_OPTIONS: "-Xmx2048m -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m"'
@TheDancerCodes
TheDancerCodes / Fastfile
Last active January 21, 2019 16:38
This gist contains a ruby block for setting up a Slack Webhook
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
@TheDancerCodes
TheDancerCodes / keystore.properties
Last active February 8, 2019 09:01
This file should contain your signing information.
# Remember to add your values here as plain text. No quotes required.
keyAlias = your_project_key_alias
keyPassword = your_key_alias_password
storeFile = /path/to/your/.keystore # Example: /Users/thedancercodes/keystores/fastlane-droid.keystore
storePassword = your_keystore_password
@TheDancerCodes
TheDancerCodes / build.gradle
Last active July 23, 2019 07:00
A build.gradle file containing code for generating a release APK
apply plugin: 'com.android.application'
...
// Create a variable called keystorePropertiesFile, and initialize it to your
// keystore.properties file, in the rootProject folder.
def keystorePropertiesFile = rootProject.file("keystore.properties")
// Initialize a new Properties() object called keystoreProperties.
def keystoreProperties = new Properties()
@TheDancerCodes
TheDancerCodes / junit5-build.gradle
Created March 7, 2019 04:14
Setting Up your Java Project for JUnit 5
apply plugin: "java"
// Enable the JUnit platform through the test closure;
// which has been providing the method useJUnitPlatform since the release of gradle 4.6
test {
useJUnitPlatform {
includeTags "slow"
excludeEngines "my-engine"
}
}
desc "Build a signed release APK & deploy to slack"
lane :slack_apk_build do
gradle(
task: "assemble",
build_type: "Release",
print_command: false,
properties: {
"android.injected.signing.store.file" => "keystore.jks",
"android.injected.signing.store.password" => "store_password",
"android.injected.signing.key.alias" => "key_alias",