Warning when inheriting android.app.IntentService with class-parse
meghandaly opened this issue · comments
Follow up to Cannot inherit android.app.IntentService with class-parse #717
If you try to bind a class that inherits android.app.IntentService
with class-parse you get the following warning:
Warning BG8102 Class 'Microsoft.Intune.Mam.Client.Service.MAMBackgroundService' has unknown base type 'android.app.IntentService'.
Warning BG8102 Class 'Microsoft.Intune.Mam.Client.App.MAMIntentService' has unknown base type 'android.app.IntentService'.
Adding the following to Metadata.xml
will satisfy the build:
<attr path="/api/package[@name='com.microsoft.intune.mam.client.app']/class[@name='MAMIntentService']" name="extends">Android.App.IntentService</attr>
<attr path="/api/package[@name='com.microsoft.intune.mam.client.service']/class[@name='MAMBackgroundService']" name="extends">Android.App.IntentService</attr>
Is it expected that we need to perform that transformation?
Repo:
https://github.com/msintuneappsdk/ms-intune-app-sdk-android/blob/master/Microsoft.Intune.MAM.SDK.aar
It looks like we only fixed this for ApiXmlAdjuster
and not generator
. Though I'm not sure why it wouldn't have also been a problem with jar2xml
if it needs to be fixed in generator
as well. 🤔
I guess that transformation is indeed needed for now.