Skip to content
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

Merged
merged 3 commits into from May 21, 2019

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.
@build
Copy link
Contributor

build commented May 20, 2019

Messages
📖 👍 Hey!, You deleted more code than you added. That's awesome!
📖

💾 Here's the generated SDK zipfile.

📖

✅ All tests are passing
Nice one! All 3025 tests are passing.

Generated by 🚫 dangerJS against d35ec49

@keerthi1032
Copy link
Contributor

FR Passed. Tested with the test cases mentioned in TIMOB-26778,TIMOB-26777, TIMOB-27067 and TIMOB-27067
TIMOB-26778 -ConfigChanges values updated correctly and all settings were shown correctly manifest file
TIMOB-26777- No UI issue when bluetooth keyboard connected/disconnected
TIMOB-27067 -No UI issue when tested with battery saver turning off/on
TIMOB-27067- NO issues and setting updated correctly in Android manifest xml file when Tiapp.xml file changed.

Test Environment:
Operating System
Name = Mac OS X
Version = 10.13.6
Architecture = 64bit
Node.js
Node.js Version = 8.9.1
npm Version = 5.5.1
Titanium CLI
CLI Version = 5.1.1
Titanium SDK
SDK Version = LOCAL SDK 8.0.2.v20190517171610
Device = Pixel android 9,samsung s5 android 6
Emulator= Pixel 2XL android 9,Pixel 3xl

@keerthi1032
Copy link
Contributor

Jenkin is failing. Not able to merge. waiting for resolving jenkin failure to merge

@keerthi1032 keerthi1032 merged commit 2af5b74 into tidev:8_0_X May 21, 2019
@keerthi1032
Copy link
Contributor

PR Merged

sgtcoolguy pushed a commit to sgtcoolguy/titanium_mobile that referenced this pull request May 23, 2019
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants