IMA Android SDK using android.support dependencies instead of androidx.

92 views
Skip to first unread message

Omar BSantos

unread,
Dec 1, 2021, 2:17:22 PM12/1/21
to Interactive Media Ads SDK
Even the latest version of the library (3.25.1) includes android.support dependencies that is forcing Android apps that use it to use Jetifier in compilation time to convert those to AndroidX. Example of jetifier output:

./jetifier-standalone/bin/jetifier-standalone -i ima-android-v3-3.25.1/lib/sdk.jar -o sdk-jet.jar -l verbose

VERBOSE: [Processor] [Applied: ByteCodeTransformer] com/google/ads/interactivemedia/v3/internal/aso.class
INFO: [TypeRewriter] Map: android/support/annotation/Nullable -> androidx/annotation/Nullable
INFO: [TypeRewriter] Map: android/support/annotation/Nullable -> androidx/annotation/Nullable
INFO: [TypeRewriter] Map: android/support/annotation/Nullable -> androidx/annotation/Nullable
INFO: [TypeRewriter] Map: android/support/annotation/Nullable -> androidx/annotation/Nullable
INFO: [TypeRewriter] Map: android/support/annotation/Nullable -> androidx/annotation/Nullable

There are other cases, this is just a partial log as an example.

Using jetifier during compilation time increase build times.

Jetifier can be found here

Regards,
Omar

IMA SDK

unread,
Dec 2, 2021, 1:14:25 AM12/2/21
to ima...@googlegroups.com

Hi Omar,

 

Thank you for reaching out to us with your concern.

 

Could you please confirm if you can replicate the same behavior using our sample apps? We would also require the full logs of the issue. Upon submitting the requested information, we will raise this to the rest of them to further investigate.

You may send the requested information privately via "Reply To Author" button.

Regards,

Google Logo
Michael Angelo Legaspi
IMA SDK Team
 


ref:_00D1U1174p._5004Q2RyBQY:ref

Omar BSantos

unread,
Jul 5, 2022, 11:31:51 AM7/5/22
to Interactive Media Ads SDK
Hi Michael,

I notice that even the latest version 3.27.1 still uses support libraries. Do you think there is any plan to change this?

Regards,
Omar

IMA SDK

unread,
Jul 6, 2022, 11:29:30 AM7/6/22
to ima...@googlegroups.com
Hello Omar,

This is Jackson from the IMA SDK team. We were not able to determine the source that includes 'android.support.annotation.Nullable'. This appears to be included by another library outside of Android IMA, which we are unfortunately unable to update.

Please let me know if you have any follow-up questions.

Thank you,
Jackson
IMA SDK team

ref:_00D1U1174p._5004Q2RyBQY:ref

Omar BSantos

unread,
Jul 6, 2022, 1:21:32 PM7/6/22
to Interactive Media Ads SDK

Hi Jackson,

Can't point you to the exact file since the names are obfuscated, but I just downloaded the library from here: https://imasdk.googleapis.com/native/downloads/ima-android-v3-3.27.0.zip
Then open sdk.jar with Android Studio, and see the obfuscated code. I'm assuming it's part of the library as is in the com.google.ads.interactivemedia.v3.internal package

Screen Shot 2022-07-06 at 1.18.38 PM.png

This is not just the only file, there are several others. Can't imagine of other ways to point you to the sources i'm sorry.

Regards,
Omar

IMA SDK

unread,
Jul 6, 2022, 2:09:59 PM7/6/22
to ima...@googlegroups.com
Hello Omar,

Thanks for pointing this out, I was able to identify the place where this is set and included in the IMA SDK. Let me see if this can be updated.

I will respond here when I have updates on this issue.

IMA SDK

unread,
Jul 25, 2022, 10:27:16 AM7/25/22
to ima...@googlegroups.com
Hi all,

An update for this issue. The library including the older dependency has been identified. That library has been updated, and the issue should be completely resolved once IMA imports the latest version.

Jackson,

Omar BSantos

unread,
Jul 25, 2022, 12:08:11 PM7/25/22
to Interactive Media Ads SDK
Awesome! 

Thanks for the follow up Jackson

Omar

IMA SDK

unread,
Jul 25, 2022, 3:15:56 PM7/25/22
to ima...@googlegroups.com
Hi Omar,

I will be sure to update you here once I have any additional information.

Thank you,
Jackson

IMA SDK

unread,
Aug 4, 2022, 10:59:08 AM8/4/22
to ima...@googlegroups.com
Hello Omar,

I wanted to update you that the next release of the Android IMA SDK will not included 'android.support' dependencies. They should have been updated to 'AndroidX'

This does not include the recent release of v3.28.1 (live on 8/3/2022), but should apply to the following version.

Omar BSantos

unread,
Aug 4, 2022, 11:20:11 AM8/4/22
to Interactive Media Ads SDK
Appreciate the heads up!

Thanks for working on this, it really helps

Regards,
Omar

IMA SDK

unread,
Sep 14, 2022, 5:22:36 PM9/14/22
to ima...@googlegroups.com
Hello Omar,

Updating you to let you know that the latest version of the IMA SDK for Android (v3.28.2) should have this issue resolved.
Reply all
Reply to author
Forward
0 new messages