Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Close #9960: Launch URI in Fenix if failed to launch in custom tab #9964

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

rocketsroger
Copy link
Contributor

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

After merge

  • Milestone: Make sure issues finished by this pull request are added to the milestone of the version currently in development.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@codecov-io
Copy link

codecov-io commented Apr 15, 2020

Codecov Report

Merging #9964 into master will decrease coverage by 0.20%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #9964      +/-   ##
============================================
- Coverage     19.37%   19.17%   -0.21%     
+ Complexity      538      521      -17     
============================================
  Files           339      336       -3     
  Lines         13801    13732      -69     
  Branches       1847     1844       -3     
============================================
- Hits           2674     2633      -41     
+ Misses        10888    10860      -28     
  Partials        239      239              
Impacted Files Coverage Δ Complexity Δ
app/src/main/java/org/mozilla/fenix/Config.kt 26.82% <0.00%> (-3.73%) 2.00 <0.00> (ø)
...lla/fenix/customtabs/ExternalAppBrowserFragment.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ain/java/org/mozilla/fenix/perf/StartupTimeline.kt 0.00% <0.00%> (-62.50%) 0.00% <0.00%> (-2.00%)
...nix/components/toolbar/BrowserToolbarController.kt 64.70% <0.00%> (-1.58%) 0.00% <0.00%> (ø%)
...rc/main/java/org/mozilla/fenix/FenixApplication.kt 11.18% <0.00%> (-1.23%) 3.00% <0.00%> (-1.00%)
.../java/org/mozilla/fenix/browser/BrowserAnimator.kt 7.40% <0.00%> (-0.44%) 0.00% <0.00%> (ø%)
...src/main/java/org/mozilla/fenix/components/Push.kt 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
...c/main/java/org/mozilla/fenix/home/HomeFragment.kt 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
...java/org/mozilla/fenix/push/FirebasePushService.kt 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
...a/org/mozilla/fenix/addons/AddonDetailsFragment.kt 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 909ee73...b448e22. Read the comment docs.

@rocketsroger rocketsroger requested review from a team and removed request for csadilek April 16, 2020 14:45

val deepLinkScheme: String
get() = when (this) {
FenixNightly -> "fenix-nightly"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the time, when we added the deepLinkScheme, the only use case for it was in the manifest.

I don't think we can avoid the duplication to set the values in the manifest an in the Kotlin layer, but what do you think about using a buildConfigField so we set the values in the same build.gradle place? We wouldn't need the Config.deepLinkScheme parsing and it would be less likely for errors if we decide to change our variants tomorrow (it's quite likely actually with LeanPlum things 😄 ).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll look into creating a buildConfigField. Thanks,

Copy link
Contributor

@jonalmeida jonalmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -33,9 +33,11 @@ android {
resValue "bool", "IS_DEBUG", "false"
buildConfigField "boolean", "USE_RELEASE_VERSIONING", "false"
buildConfigField "String", "AMO_COLLECTION", "\"7e8d6dc651b54ab385fb8791bf9dac\""
def deepLinkSchemeValue = "fenix-dev"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice! I didn't think this would work for some reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@rocketsroger rocketsroger merged commit 40550e8 into mozilla-mobile:master Apr 17, 2020
@liuche liuche mentioned this pull request Apr 28, 2020
32 tasks
@rocketsroger rocketsroger deleted the FB_9960 branch January 5, 2021 20:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants