airsdk / apm

AIR Package Manager
https://repository.airsdk.dev/
MIT License
60 stars 10 forks source link

unable to generate app-descriptor #207

Open Shaunmax opened 1 month ago

Shaunmax commented 1 month ago

I just updated a project after a long time but was unable to generate the app descriptor

apm generate app-descriptor
Android package name: air.com.company.appname
✗ Android manifest merge  
generate/app-descriptor :: /Users/macname/Projects/AppName/apm_packages/com.distriqt.firebase.Performance/contents/platforms/android/firebase-sessions-2.0.0/AndroidManifest.xml Warning:
    Package name 'com.google.firebase.sessions' used in: AndroidManifest.xml, AndroidManifest.xml.
/Users/macname/Projects/AppName/.tmp59385/AndroidManifest.xml:4:5-74 Error:
    uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library /Users/macname/Projects/AppName/apm_packages/com.distriqt.firebase.Auth/contents/platforms/android/firebase-auth-23.0.0/AndroidManifest.xml as the library might be using APIs not available in 21
    Suggestion: use a compatible library with a minSdk of at most 21,
        or increase this project's minSdk version to at least 23,
        or use tools:overrideLibrary="com.google.firebase.auth" to force usage (may lead to runtime failures)
marchbold commented 1 month ago

Did you try increasing your minimum to 23? I believe the firebase auth sdk has been updated to 23 due to a security issue.

Shaunmax commented 1 month ago

Did you try increasing your minimum to 23?

where should I make this change ?

in the app xml its already <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="34"/>

marchbold commented 1 month ago

https://github.com/airsdk/apm/wiki/Usage-Generate#android

Basically:

apm generate config android

And edit config/android/AndroidManifest.xml to contain your manifest additions and project settings outside of the packages:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" >

    <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="34" />

</manifest>