- Download JarJar jar
- In the same folder download the grooid jar you want to use. This was tested with 2.4.12 jar
- Again, in the same folder create a file called rules.txt
- In rules.txt put "zap org.codehaus.groovy.vmplugin.v7.IndyInterface"
- Run
java -jar jarjar-1.3.jar process rules.txt groovy-2.4.12-grooid.jar groovy-android.jar
- Now add newly created jar file to your android project.
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
pluginManagement { | |
repositories { | |
gradlePluginPortal() | |
google() | |
jcenter() | |
maven { url = uri("https://maven.fabric.io/public") } | |
} | |
resolutionStrategy { | |
eachPlugin { |
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
package com.andrew; | |
// move this below other imports | |
// or do not resolve statically and error goes away. | |
import static com.andrew.Animal.Legs.FOUR; | |
import com.google.auto.value.AutoValue; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; |
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
/** | |
* Grabs a configuration value from configuration property or system properties (in that order) if | |
* one exits. Otherwise the default value will be used. If a default value is not provided an empty | |
* string will be used. | |
* | |
* @param values Map containing the property name to look for (propertyName), the system environment | |
* variable name to look for (environmentPropertyName), and the default value if any to use | |
* if a value was not found. | |
* @return the first found value, project property, then system, then default value. If no default | |
* value was provided an empty string will be returned. |
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
[ratpack-compute-27-6] ERROR ratpack.exec.Execution - Uncaught execution exception | |
ratpack.registry.NotInRegistryException: No object for type 'ratpack.handling.Context' in registry | |
at ratpack.registry.Registry.get(Registry.java:136) | |
at ratpack.registry.Registry.get(Registry.java:120) | |
at ratpack.retrofit.internal.RatpackCallFactory$RatpackCall.promise(RatpackCallFactory.java:83) | |
at ratpack.retrofit.internal.RatpackCallFactory$RatpackCall.enqueue(RatpackCallFactory.java:70) | |
at retrofit2.OkHttpCall.enqueue(OkHttpCall.java:101) | |
at ratpack.retrofit.internal.RatpackCallAdapterFactory$SimpleCallAdapter.lambda$adapt$0(RatpackCallAdapterFactory.java:135) | |
at ratpack.exec.internal.DefaultExecution.lambda$null$1(DefaultExecution.java:119) | |
at ratpack.exec.internal.DefaultExecution$SingleEventExecStream.exec(DefaultExecution.java:423) |
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
import android.support.annotation.NonNull; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.ListIterator; | |
import java.util.RandomAccess; |
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
/** | |
* Provides a simple way to hide a keyboard, because google didn't | |
*/ | |
@Singleton | |
public final class KeyboardHider { | |
private final InputMethodManager inputMethodManager; | |
@Inject KeyboardHider(InputMethodManager inputMethodManager) { | |
this.inputMethodManager = checkNotNull(inputMethodManager, "inputMethodManager == null"); |
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
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.ListIterator; | |
import java.util.RandomAccess; | |
import static com.fernandocejas.arrow.checks.Preconditions.checkNotNull; |
I hereby claim:
- I am AndrewReitz on github.
- I am areitz (https://keybase.io/areitz) on keybase.
- I have a public key whose fingerprint is 6513 2A0E 64C9 3BC1 EDB4 BA62 0221 9C76 97C0 FB6E
To claim this, I am signing this object: