Status Update
Comments
ap...@google.com <ap...@google.com> #2
Branch: androidx-master-dev
commit b0d50ff55188be686796988b1ab6bd962fe383af
Author: Filip Pavlis <pavlis@google.com>
Date: Tue Jan 28 19:39:50 2020
Don't skip partially migrated libraries.
More details in the bug.
Plus the scanner now also throws exception for malformed bytecode the
same way the ByteCodeTransformer so we warn the user properly.
Relnote: Partially migrated libraries are no longer skipped.
Bug:
Test: Updated + added
Change-Id: I3502b2c87c04d8d3c6b16a554f1ea5190c39613d
M jetifier/jetifier/core/src/main/kotlin/com/android/tools/build/jetifier/core/utils/Log.kt
M jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/AndroidXRefScanner.kt
M jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/Processor.kt
M jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/ChangeDetectionTest.kt
M jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/bytecode/ByteCodeTransformerTest.kt
pa...@google.com <pa...@google.com> #3
ga...@google.com <ga...@google.com> #4
> Transform artifact wearable-2.5.0.aar (com.google.android.support:wearable:2.5.0) with JetifyTransform
WARNING: [Processor] Library '/usr/local/google/home/gavra/.gradle/caches/modules-2/files-2.1/com.google.android.support/wearable/2.5.0/52dec610511a6ccde7c4dd3480a82909fc83f5aa/wearable-2.5.0.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
Example of androidX reference: 'androidx/viewpager/widget/PagerAdapter'
Example of support library reference: 'android/support/v4/view/VelocityTrackerCompat'
ga...@google.com <ga...@google.com> #5
hu...@google.com <hu...@google.com> #6
[Deleted User] <[Deleted User]> #8
unfortunately, the jetifier still fails for this libraries:
- com.facebook.android:facebook-android-sdk:5.0.1
- com.github.nikartm:image-support:1.0.5
- com.clevertap.android:clevertap-android-sdk:3.7.2
I've also did this:
My setup: AGP: 4.0.0-beta05 Gradle Wrapper: 6.1.1 Kotlin: 1.3.72
still working on the sample project for to reproduce this
hu...@google.com <hu...@google.com> #9
Can you please attach a stack trace? That'll help confirm if what you're seeing is the same or a different issue.
[Deleted User] <[Deleted User]> #11
in a clean project this is not hapenned. but with existing codebase migration, there's a lot of 3rd-party library that still using Android Support Library, and the process always fails, my original SO questions:
hu...@google.com <hu...@google.com> #12
Okay, glad to hear that your issue has been fixed now.
If you run into another Jetifier-related issue, please send us a stack trace of the failure, and we will investigate it. Thanks!
Description