New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(android)(8_0_X): Improved merge of "tiapp.xml" android manifest settings #10900
Conversation
…anifest settings into Titanium's default manifest settings - [TIMOB-26778] Fixed bug where overriding an <activity/> in "tiapp.xml" caused most "configChanges" values to be lost. * Would cause activity window's UI to disappear if a system config change occurred dynamically. - [TIMOB-26777] Fixed bug where connecting/disconnecting a physical keyboard to/from device caused UI to disappear. - [TIMOB-27067] Fixed bug where UI sometimes disappears on Android 9.0 or higher when batter saver turns on/off. - Added missing <activity/> "configChanges" values: * keyboard, layoutDirection, mcc, mnc, navigation, touchscreen, uiMode - Removed launchMode "singleTask" from "TiMapActivity" and "TiVideoActivity". (Not applicable to child activities.)
…EJS "AndroidManifest.xml" template for [TIMOB-26778] - Fixed previous [TIMOB-26778] commit to not inject configChanges values to all activities such as those belonging to modules/AARs. * Should only be added to Titanium activities that need it. They're now injected via "allActivityConfigChanges" EJS template variable. - Removed last remnants of "Ti.Map" from build scripts. - Removed "TiVideoActivity" and "TiCameraActivity" injection code from build script. * There is no downside to always having these activities in the "AndroidManifest.xml". So, it's been simplified.
…erride "AndroidManifest.xml" settings defined in AAR or "timodule.xml" - Change manifest merge order. Now merges AAR and "timodule.xml" settings first. "tiapp.xml" settings are merged last.
|
FR Passed. Tested with the test cases mentioned in TIMOB-26778,TIMOB-26777, TIMOB-27067 and TIMOB-27067 Test Environment: |
Jenkin is failing. Not able to merge. waiting for resolving jenkin failure to merge |
PR Merged |
…ettings (tidev#10900) * [TIMOB-26778] Android: Improved merge of "tiapp.xml" file's android manifest settings into Titanium's default manifest settings - [TIMOB-26778] Fixed bug where overriding an <activity/> in "tiapp.xml" caused most "configChanges" values to be lost. * Would cause activity window's UI to disappear if a system config change occurred dynamically. - [TIMOB-26777] Fixed bug where connecting/disconnecting a physical keyboard to/from device caused UI to disappear. - [TIMOB-27067] Fixed bug where UI sometimes disappears on Android 9.0 or higher when batter saver turns on/off. - Added missing <activity/> "configChanges" values: * keyboard, layoutDirection, mcc, mnc, navigation, touchscreen, uiMode - Removed launchMode "singleTask" from "TiMapActivity" and "TiVideoActivity". (Not applicable to child activities.) * Android: Added new "allActivityConfigChanges" variable to be used by EJS "AndroidManifest.xml" template for [TIMOB-26778] - Fixed previous [TIMOB-26778] commit to not inject configChanges values to all activities such as those belonging to modules/AARs. * Should only be added to Titanium activities that need it. They're now injected via "allActivityConfigChanges" EJS template variable. - Removed last remnants of "Ti.Map" from build scripts. - Removed "TiVideoActivity" and "TiCameraActivity" injection code from build script. * There is no downside to always having these activities in the "AndroidManifest.xml". So, it's been simplified. * [TIMOB-27084] Android: Fixed issue where "tiapp.xml" was unable to override "AndroidManifest.xml" settings defined in AAR or "timodule.xml" - Change manifest merge order. Now merges AAR and "timodule.xml" settings first. "tiapp.xml" settings are merged last.
JIRA:
Cherry-pick of: PR #10884