Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Support AndoridX support classes (e.g. androidx.fragment.app.Fragment) #2144

Description

@dodgex

Currently AA does not support the classes from AndroidX dependencies.

e.g. in addition to android.app.Fragment and android.support.v4.app.Fragment we also should support androidx.fragment.app.Fragment.

Activity

  1. dodgex commented on Jun 9, 2018

    @dodgex
    MemberAuthor

    The new Constants for AndroidX

    ANDROIDX_ACTIVITY_COMPAT
    ANDROIDX_FRAGMENT
    ANDROIDX_FRAGMENT_ACTIVITY
    ANDROIDX_LOCAL_BROADCAST_MANAGER
    ANDROIDX_CONTEXT_COMPAT
    ANDROIDX_PREFERENCE
    ANDROIDX_PREFERENCE_FRAGMENT
    ANDROIDX_PREFERENCE_FRAGMENTCOMPAT
    ANDROIDX_PREFERENCE_CLICK_LISTENER
    ANDROIDX_PREFERENCE_CHANGE_LISTENER
    ANDROIDX_APPCOMPAT_ACTIVITY
    ANDROIDX_VIEW_PAGER
    ANDROIDX_PAGE_CHANGE_LISTENER
    
  2. dodgex commented on Jun 9, 2018

    @dodgex
    MemberAuthor

    Work on this is blocked by the other 3 PR. @WonderCsabo would be nice when you can review them tomorrow.

  3. sandsaber commented on Jun 25, 2018

    @sandsaber

    +data binding, currently @DataBound does not work with android x data binding

  4. dodgex commented on Jul 1, 2018

    @dodgex
    MemberAuthor

    Hey @sandsaber could you please test if the updated PR #2149 works with databinding?

    Thanks!

  5. sandsaber commented on Jul 16, 2018

    @sandsaber

    @dodgex seem like not working,

    [kapt] An exception occurred: java.lang.NoClassDefFoundError: com/helger/jcodemodel/AbstractJClass
            at org.androidannotations.internal.Options.<init>(Options.java:51)
            at org.androidannotations.internal.InternalAndroidAnnotationsEnvironment.<init>(InternalAndroidAnnotationsEnvironment.java:60)
            at org.androidannotations.internal.AndroidAnnotationProcessor.init(AndroidAnnotationProcessor.java:75)
            at org.jetbrains.kotlin.kapt3.ProcessorWrapper.init(annotationProcessing.kt)
            at com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.<init>(JavacProcessingEnvironment.java:500)
            at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:597)
            at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:690)
            at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
            at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
            at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
            at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
            at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1068)
            at org.jetbrains.kotlin.kapt3.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:87)
            at org.jetbrains.kotlin.kapt3.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:45)
            at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.runAnnotationProcessing(Kapt3Extension.kt:257)
            at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.analysisCompleted(Kapt3Extension.kt:212)
            at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.analysisCompleted(Kapt3Extension.kt:95)
            at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM$analyzeFilesWithJavaIntegration$2.invoke(TopDownAnalyzerFacadeForJVM.kt:97)
            at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:107)
            at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:84)
            at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:374)
            at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:64)
            at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:101)
            at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:365)
            at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:130)
            at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:161)
            at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:63)
            at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:107)
            at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:51)
            at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:96)
            at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$1$1$2.invoke(CompileServiceImpl.kt:405)
            at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$1$1$2.invoke(CompileServiceImpl.kt:98)
            at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:920)
            at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:98)
            at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137)
            at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:950)
            at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:919)
            at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:404)
            at sun.reflect.GeneratedMethodAccessor366.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:361)
            at sun.rmi.transport.Transport$1.run(Transport.java:200)
            at sun.rmi.transport.Transport$1.run(Transport.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
            at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.ClassNotFoundException: com.helger.jcodemodel.AbstractJClass
            at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
            ... 54 more
    
  6. vonclutch commented on Oct 9, 2018

    @vonclutch

    @dodgex Any news about this pr #2149 ?

  7. added this to the 4.5 milestone on Oct 12, 2018
  8. WonderCsabo commented on Oct 12, 2018

    @WonderCsabo
    Member

    Fixed.

  9. removed this from the 4.5 milestone on Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions