I hereby claim:
- I am stefanhoth on github.
- I am stefanhoth (https://keybase.io/stefanhoth) on keybase.
- I have a public key whose fingerprint is 5FD2 323B 54C3 241D 8E3F 3F98 823F FCCB 59AE 700F
To claim this, I am signing this object:
<?php | |
// Replace with real BROWSER API key from Google APIs | |
$apiKey = "<ENTER API KEY HERE>"; | |
// Replace with real client registration IDs | |
$registrationIDs = array( | |
"APA91bGOrAyHktj3DU0H0z4tsu-...", | |
"APA91bHr0vERPIe-DHbQGZLBjuj..." | |
); |
I hereby claim:
To claim this, I am signing this object:
android { | |
// .. set up build flavors etc here | |
//instead of "app-release.apk" this method will rewrite the name to | |
// "MyCoolCompany-MyGreatProduct-v<defaultConfig.versionName>-RELEASE.apk which is much better suited for archiving and overall handling | |
// To restore the default behavior just delete the whole block below | |
applicationVariants.all { variant -> | |
def apk = variant.outputFile; |
@ECHO OFF | |
@REM Jack is only available from build tools version 21.1.0 and up. Install/Update via SDK Manager | |
SET BUILD_TOOLS_VERSION=21.1.2 | |
java -jar %ANDROID_HOME%/build-tools/%BUILD_TOOLS_VERSION%/jack.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 |
// your code | |
apply from: "build-plugins/idea-gradle-sources.gradle" |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<ImageView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/group_image" |
// The Factory | |
public final class VehicleFactory { | |
// private constructor => can't be instanciated, final can't be extended since the constructor is not reachable for a subclass | |
private VehicleFactory (){ | |
// no-op | |
} | |
public static Vehicel Vehicle produceVehicle(String name, String manufacturer, int horsepowerInPS){ | |
return new Vehicle(name, manufacturer, horsepowerInPS); |
package com.yourapp; | |
import java.io.File; | |
public final class RootStatus { | |
private static RootStatus instance; | |
private final boolean rooted; |
android { | |
... | |
deviceProvider new AwesomeDeviceProvider(getAdbExe()) | |
} | |
class AwesomeDeviceProvider extends com.android.builder.testing.ConnectedDeviceProvider { | |
AwesomeDeviceProvider(File adbLocation) { | |
super(adbLocation) | |
} |
// You can place it in the root build.gradle | |
allprojects { | |
tasks.withType(JavaForkOptions) { | |
// Forked processes like GradleWorkerMain for tests won't steal focus! | |
jvmArgs '-Djava.awt.headless=true' | |
} | |
} |