Skip to content

Warning when inheriting android.app.IntentService with class-parse #1098

Open
@meghandaly

Description

@meghandaly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugComponent does not function as intendedgeneratorIssues binding a Java library (generator, class-parse, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions