This was a bug prior to 0.2.3.
In terms of the <permission>
and <uses-permission>
you should be able to use the @Permission
and @UsesPermission
annotations on the @TransfuseModule
configuration class:
@TransfuseModule
@Permission(name="com.vogella.android.locationapi.maps.permission.MAPS_RECEIVE", protectionLevel=ProtectionLevel.SIGNATURE)
@UsesPermission({
"com.vogella.android.locationapi.maps.permission.MAPS_RECEIVE",
Manifest.permission.INTERNET,
Manifest.permission.WRITE_EXTERNAL_STORAGE})
public class Module{}
produces the following:
<permission
android:name="com.vogella.android.locationapi.maps.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="com.vogella.android.locationapi.maps.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />