preprocessor adds

Monkey Forums/Monkey Bug Reports/preprocessor adds

Skn3(Posted 2014) [#1]
If I have this in my app/module:
#ANDROID_MANIFEST_MAIN += "<uses-permission android:name=~qandroid.permission.READ_PHONE_STATE~q/>"
#ANDROID_MANIFEST_MAIN += "<uses-permission android:name=~qandroid.permission.GET_ACCOUNTS~q/>"


In AndroidManifest.xml, the resulting output would be
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>;<uses-permission android:name="android.permission.GET_ACCOUNTS"/>


Monkey is adding ";"


therevills(Posted 2014) [#2]
I've noticed this too... but I don't think its a problem, Google Play accepts the created APK:

Here's part of my AndroidManifest.xml from Don't Tap the Zombies:
		<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />;<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />;<meta-data android:name="com.google.android.gms.appstate.APP_ID" android:value="@string/app_id" />;<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />;<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />;<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="xxx"/>



Skn3(Posted 2014) [#3]
Yeah can't see it being a problem for XML as they would just be treated as text nodes. It could be for other languages if the same happens?


marksibly(Posted 2014) [#4]
An hour later...and that'll be because I mispelt MANIFEST in the transcc 'builder' files! Search for MAINFEST...

Ha!


Skn3(Posted 2014) [#5]
At least it wasn't manfest, lol!