Migrating to AndroidX Support Library - bidmad/Bidmad-Android GitHub Wiki

Migrating to AndroidX Support Library


Version 1.10.6 has been released to support Android 11. Since 1.10.6 is only available in AndroidX, customers who are using Android Support Library (API 28 or less) in the current project should follow the guide below. Please proceed with the migration to the AndroidX Support Library.

Since the release of the 2018/9 AndroidX Support Library, most libraries in 2020/10 have been migrated to AndroidX, and the latest version is provided as AndroidX. The latest library of Ad Networks is also distributed as AndroidX, so it is difficult to support the Android Support Library, so please understand that the Android Support Library version is not supported from 1.10.6.


Android Studio Project AndroidX Support Library Migration Guide

  1. Declare the code below in gradle.properties file

    android.enableJetifier=true
    android.useAndroidX=true
    
  2. Update libraries referencing Android Support Library in the project to the latest version

  3. Change by BidmadSDK AndroidX version

    implementation 'com.adop.sdk:bidmad-androidx:1.10.6'
    

Unity Project AndroidX Support Library Migration Guide

  1. Declare the code below in mainTemplate.gradle file

    ([rootProject] + (rootProject.subprojects as List)).each {
        ext {
            it.setProperty("android.useAndroidX", true)
            it.setProperty("android.enableJetifier", true)
        }
    }
    

    For 2019.04 version, declare the code below in gradleTemplate.properties file

    android.enableJetifier=true
    android.useAndroidX=true
    
  2. Update libraries referencing Android Support Library in the project to the latest version

  3. Change with BidmadSDK AndroidX version (mainTemplate.gardle)

    implementation ('com.adop.sdk:bidmad-androidx:1.10.5'){
        exclude group: "com.google.code.gson", module: "gson"
    }  
    implementation 'com.google.code.gson:gson:2.8.5'