[TIMOB-6783] Android: AndroidManifest - V8 and Rhino, modifying custom AndroidManifest does not copy to real AndroidManifest during build time
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-01-23T16:53:35.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Wilson Luu |
Assignee | Ping Wang |
Created | 2011-12-19T19:31:00.000+0000 |
Updated | 2012-01-23T16:53:35.000+0000 |
Description
Steps to reproduce:
1. Create a TiMob project and launch to Android emulator
2. Copy AndroidManifest.xml from *build* folder and add it to *platform > android* (platform folder is the same level as resources)
3. In the AndroidManifest.xml, modify the TiActivity tag to the following:
<activity android:name="org.appcelerator.titanium.TiActivity"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden" />
4. Clean and run
Results: The AndroidManifest.xml in the build folder still contains:
<activity android:name="org.appcelerator.titanium.TiActivity"
android:configChanges="keyboardHidden|orientation" />
5. You get the same results if you changed only the TiTabActivity to:
<activity android:name="ti.modules.titanium.ui.TiTabActivity"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden" />
6. But, if both tags from step 3 and 5 are changed accordingly, then the tags get copied to the AndroidManifest in the build folder
Expected: Changes to the custom AndroidManifest should be reflected in the AndroidManifest in the build folder
Can not reproduce with the latest master and 1_8_X.
Closing bug. Was not able to reproduce in 1.8.0.1.RC3. Note: If a similar issue arises, need to wait longer to see changes in the AndroidManifest.xml