ASL2.0 Copyright(C) 2016 Fred Grott first part is the clove
public class Clove {
private static String myClove = null;
public String setClove(String ourClove){
return ourClove = myClove;
}| // in your android.applicationVariants.all { variant -> | |
| // or in your android.libraryVariants.all { variant -> | |
| // code block put this: | |
| if (variant.productFlavors[0] == null){ | |
| variant.outputs[0].outputFile = new File(variant.outputs[0].outputFile.parent, | |
| project.ext.ourProjectName + "_" | |
| + variant.buildType.name + "_" | |
| + android.defaultConfig.versionCode + "_" | |
| + android.defaultConfig.versionName + ".apk") | |
| }else{ |
| package com.grottworkshop.gwsbase; | |
| import android.os.Bundle; | |
| /** | |
| * BaseSaveable interface | |
| * Created by fgrott on 9/21/2015. | |
| */ | |
| @SuppressWarnings("unused") | |
| public interface BaseSaveable { |
| package com.grottworkshop.gwsbase; | |
| import android.os.Bundle; | |
| import java.util.List; | |
| @SuppressWarnings("unused") | |
| public abstract class BaseSavingState implements BaseSaveable { |
| public final class MyExtendedSavingStateProvider extends BaseSavingStateProvider{ | |
| private static final MyExtendedBaseSavingSate mySavingState = new MyExtendedBaseSavingState(objectGlobalOne, objectGlobalTwo); | |
| public static MyExtendedBaseSavingState getInstance(){ | |
| return mySavingState; | |
| } | |
| private MyExtendedSavingStateProvider(){ | |
| } |
| ext{ | |
| repo = Grgit.open(rootProject.file('.')) | |
| gitSha = '${repo.head().abbreviatedId}' | |
| } |
| buildConfigField STRING, GIT_HASH, rootProject.ext.gitSha |
| public class DroidUuidFactory { | |
| protected static final String PREFS_FILE = "device_uuid.xml"; | |
| protected static final String PREFS_DEVICE_UUID = "device_uuid"; | |
| protected volatile static UUID uuid; | |
| public DroidUuidFactory(Context context){ | |
| if( uuid ==null ) { | |
| synchronized (DroidUuidFactory.class) { |
| ASL2.0 Copyright(C) 2016 Fred Grott | |
| public class MyApplication extends Application { | |
| public void onCreate () | |
| { |
| ASL2.0 Copyright(C) 2016 Fred Grott | |
| public class NoReflectionLayoutInflaterFactory implements LayoutInflaterFactory { | |
| private AppCompatActivity appCompatActivity; | |
| public NoReflectionLayoutInflaterFactory(AppCompatActivity appCompatActivity) { | |
| this.appCompatActivity = appCompatActivity; | |
| } | |
| @Override |
ASL2.0 Copyright(C) 2016 Fred Grott first part is the clove
public class Clove {
private static String myClove = null;
public String setClove(String ourClove){
return ourClove = myClove;
}