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
refactor(android)(9_3_X): honor Android 11 "package visibility" #11985
Conversation
- Now auto-injects <queries/> entry if Ti.UI.createEmailDialog() API is used. * Needed by EmailDialog.isSupport() method. - Modified Ti.Platform.openURL() to not fail if <queries/> entry is missing in "tiapp.xml" file. * The <queries/> entry is now only required for Ti.Platform.canOpenURL(). - Updated docs for Ti.Platform.canOpenURL() with <queries/> examples. Fixes TIMOB-28050
Tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: PASS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jquick-axway With the first example if I create a fresh app everything works as expected but If i use an app previously created the application just opens and closes (crashes) without an error message in the logs.
With the 2nd example at step 3. badscheme://i.dont.exist
and file:///android_asset/TitaniumLogo.png
return false is this expected?
Test Environment
MacOS Big Sur: 11.0 Beta 8
Java Version: 1.8.0_242
Android NDK: 21.3.6528147
Node.js: 12.18.1
""NPM":"5.0.0","CLI":"8.1.1""
Pixel XL Sim (11.0)
Regarding Regarding |
The backport to
Check the run for full details # Fetch latest updates from GitHub
git fetch
# Check out the target branch
git checkout master
# Make sure it's up to date
git pull
# Check out your branch
git checkout -b backport-11985-to-master
# Apply the commits from the PR
curl -s https://github.com/appcelerator/titanium_mobile/commit/9d2d4f068ac9ca1ffad26f7a2e46615954a35b2a.patch | git am -3 --ignore-whitespace
# Push it to GitHub
git push --set-upstream origin backport-11985-to-master Then, create a pull request where the |
JIRA:
https://jira.appcelerator.org/browse/TIMOB-28050
Summary:
<queries/>
entry ifTi.UI.createEmailDialog()
API is used.Ti.Platform.openURL()
to not fail if<queries/>
entry is missing in "tiapp.xml" file.<queries/>
entry is now only required forTi.Platform.canOpenURL()
.Ti.Platform.canOpenURL()
with<queries/>
URL scheme examples.E-Mail Dialog Test:
./build/android/app/build/intermediates/merged_manifests/debug
<queries/>
block with mimeType set to "message/rfc822".tiapp.xml
app.js
canOpenURL() Test:
(This test is based on PR #10881 .)
true
. (The "tel" and "geo" URLs will returnfalse
if a phone or maps app is not installed respectively.)<queries/>
block from the "tiapp.xml" file.false
in the alert. (Note that they will still returntrue
on Android 10 and older.)tiapp.xml
app.js