Hi there
We are using your Tealium plugin tealium-cordova-plugin (version 2.4.0) together with wrapper @awesome-cordova-plugins/tealium (version 8.1.0) in our app with capacitor framework.
After updating capacitor to version 8 (and therefore upgrade gradle) we cannot build the android version because of deprecated grade features.
Build log (ionic cap run android) says:
[capacitor] > Task :capacitor-community-in-app-review:bundleLibRuntimeToJarDebug [capacitor] > Task :capacitor-app:bundleLibRuntimeToJarDebug [capacitor] e: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/capacitor-cordova-android-plugins/src/main/java/main/kotlin/com/tealium/cordova/Extensions.kt:50:47 'fun String.toUpperCase(locale: Locale): String' is deprecated. Use uppercase() instead. [capacitor] e: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/capacitor-cordova-android-plugins/src/main/java/main/kotlin/com/tealium/cordova/Extensions.kt:211:36 'fun String.toUpperCase(locale: Locale): String' is deprecated. Use uppercase() instead. [capacitor] e: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/capacitor-cordova-android-plugins/src/main/java/main/kotlin/com/tealium/cordova/Extensions.kt:279:49 'fun String.toLowerCase(locale: Locale): String' is deprecated. Use lowercase() instead. [capacitor] e: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/capacitor-cordova-android-plugins/src/main/java/main/kotlin/com/tealium/cordova/Extensions.kt:288:28 'fun String.toLowerCase(locale: Locale): String' is deprecated. Use lowercase() instead. [capacitor] > Task :app:compressDebugAssets [capacitor] [capacitor] [Incubating] Problems report is available at: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/build/reports/problems/problems-report.html [capacitor] [capacitor] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
I manually altered the file "Extensions.kt" where I changed toUpperCase --> uppercase and toLowerCase --> lowercase.
The app and the plugin could then be build and deployed again.
Can you have a look at it and provide updated version of the plugin please?
In the meantime i fixed it locally and generated a patch with npx patch-package tealium-cordova-plugin which is then applied during npm install.
Thanks! Greetings from Switzerland
Olivier
Hi there
We are using your Tealium plugin tealium-cordova-plugin (version 2.4.0) together with wrapper @awesome-cordova-plugins/tealium (version 8.1.0) in our app with capacitor framework.
After updating capacitor to version 8 (and therefore upgrade gradle) we cannot build the android version because of deprecated grade features.
Build log (ionic cap run android) says:
[capacitor] > Task :capacitor-community-in-app-review:bundleLibRuntimeToJarDebug [capacitor] > Task :capacitor-app:bundleLibRuntimeToJarDebug [capacitor] e: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/capacitor-cordova-android-plugins/src/main/java/main/kotlin/com/tealium/cordova/Extensions.kt:50:47 'fun String.toUpperCase(locale: Locale): String' is deprecated. Use uppercase() instead. [capacitor] e: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/capacitor-cordova-android-plugins/src/main/java/main/kotlin/com/tealium/cordova/Extensions.kt:211:36 'fun String.toUpperCase(locale: Locale): String' is deprecated. Use uppercase() instead. [capacitor] e: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/capacitor-cordova-android-plugins/src/main/java/main/kotlin/com/tealium/cordova/Extensions.kt:279:49 'fun String.toLowerCase(locale: Locale): String' is deprecated. Use lowercase() instead. [capacitor] e: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/capacitor-cordova-android-plugins/src/main/java/main/kotlin/com/tealium/cordova/Extensions.kt:288:28 'fun String.toLowerCase(locale: Locale): String' is deprecated. Use lowercase() instead. [capacitor] > Task :app:compressDebugAssets [capacitor] [capacitor] [Incubating] Problems report is available at: file:///Users/olivierschmid/AppDev/map-core-b2c-app/android/build/reports/problems/problems-report.html [capacitor] [capacitor] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.I manually altered the file "Extensions.kt" where I changed toUpperCase --> uppercase and toLowerCase --> lowercase.
The app and the plugin could then be build and deployed again.
Can you have a look at it and provide updated version of the plugin please?
In the meantime i fixed it locally and generated a patch with
npx patch-package tealium-cordova-pluginwhich is then applied during npm install.Thanks! Greetings from Switzerland
Olivier