This file contains hidden or 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 org.test; | |
| import org.junit.Test; | |
| import javax.tools.*; | |
| import java.io.ByteArrayOutputStream; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.net.URI; | |
| import java.util.*; |
This file contains hidden or 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
| public class Tester extends SuperClass { | |
| private SuperCaller superCaller = new SuperCaller(); | |
| private Delegate delegate = new Delegate(superCaller); | |
| public static void main(String[] args){ | |
| Tester tester = new Tester(); | |
| tester.runMe(); | |
| } |
This file contains hidden or 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
| @Parcel | |
| public class Tester { | |
| @Parcel(converter = EnumExampleConverter.class) | |
| public static enum EnumExample{ | |
| ONE, | |
| TWO; | |
| } | |
| public static class EnumExampleConverter implements ParcelConverter<EnumExample>{ |
This file contains hidden or 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
| public class AnnotationProcessorOutputAssertion { | |
| public @interface Target {} | |
| public interface TestTarget { | |
| String get(); | |
| } | |
| @Test | |
| public void testCompileAnnotationProcessorOutput() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IOException { |
This file contains hidden or 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
| public class RXTest { | |
| public static void main(String[] args){ | |
| ExecutorService oneExecutor = Executors.newSingleThreadExecutor(); | |
| ExecutorService twoExecutor = Executors.newSingleThreadExecutor(); | |
| ExecutorService threeExecutor = Executors.newSingleThreadExecutor(); | |
| Scheduler one = Schedulers.from(oneExecutor); | |
| Scheduler two = Schedulers.from(twoExecutor); |
This file contains hidden or 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
| @Factory | |
| public insterface ZumperApiUtilFactory { | |
| ZumperApiUtil get(); | |
| } | |
| //usage: | |
| ZumperApiUtil util = Factories.get(ZumperApiUtilFactory.class).get(); |
This file contains hidden or 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
| john@john-desktop:~/dev/transfuse-project/examples/gradle$ ./gradlew clean assembleDebug | |
| Parallel execution is an incubating feature. | |
| Incremental java compilation is an incubating feature. | |
| extractDebugAnnotations is incompatible with java 8 sources and has been disabled. | |
| extractReleaseAnnotations is incompatible with java 8 sources and has been disabled. | |
| :testlibrary:clean | |
| :GradleTransfuse:clean | |
| :GradleTransfuse:preBuild UP-TO-DATE | |
| :GradleTransfuse:preDebugBuild UP-TO-DATE | |
| :GradleTransfuse:checkDebugManifest |
This file contains hidden or 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 test; | |
| import rx.Observable; | |
| import rx.Subscriber; | |
| import rx.Subscription; | |
| import rx.functions.Action1; | |
| import rx.functions.Func0; | |
| import rx.subjects.BehaviorSubject; | |
| import rx.subjects.PublishSubject; |
This file contains hidden or 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
| // Referencing the given R class kicks off the annotaion processor to generate an RBridge: | |
| @Bridge(R.class) | |
| // Input R: | |
| public final class R { | |
| public static final class layout { | |
| public static int example_layout=0x7f030000; | |
| } | |
| } |
This file contains hidden or 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 org.androidtransfuse.adapter; | |
| import org.androidtransfuse.adapter.classes.ASTClassFactory; | |
| import org.junit.Test; | |
| import java.lang.reflect.ParameterizedType; | |
| import java.lang.reflect.Type; | |
| import java.lang.reflect.TypeVariable; | |
| import java.util.HashMap; | |
| import java.util.Map; |