Excluding plugins doesn't work as expected with certain settings

I want to create an APK with the Target App Store set to 'none', and there are certain plugins I don’t want to include in that case—like plugin.google.iap.billing.v2, for example. In my build.settings, I’ve configured the plugin like this:

["plugin.google.iap.billing.v2"] = {
    publisherId = "com.solar2d",
    supportedPlatforms = { android = true, ["android-nongoogle"] = false }
}

However, setting ["android-nongoogle"] = false doesn’t work. Even when the APK is built with the store target set to 'none', the AndroidManifest.xml still includes the com.android.vending.BILLING permission.

I don’t think “android-nongoogle” is valid.
This is the documentation referring to support platforms in Solar2D.

Oh my mistake, it seems that it was added quietly. I just checked the source of Solar2D. It does exist, but it seems to be only compatible with the Samsung Store.

1 Like

Got it. Thanks a lot, @Kan98 That really helped.