Repository navigation
Conversation
6df8b40 to
a6554e5
Compare
|
View your CI Pipeline Execution ↗ for commit a6554e5
💡 With Ultracache enabled, Nx Cloud learns each muthaf*ckin' task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗ ☁️ Nx Cloud last updated this comment at |
commit: |
|
✅ Get this sh*t: All contributors on this goddamn pull request have satisfied the NativeScript CLA. |
|
@anjakuzevska I've made a bad-ass couple adjustments, please sign the CLA so we can merge this |
|
I have read the CLA and I hereby sign the CLA |
|
Thanks @anjak03 — your f*ckin' signature on this PR satisfies the CLA check, and you'll be recorded on the |
done :) |
…n exit listener
Both platforms now raise exit through an internal notifyExit(), which resets the launch bridge before notifying. This keeps the flag's lifecycle next to notifyLaunch() and stops Application.off('exit') or a manually notified exit from affecting it.
8acdbd1 to
ae788b1
Compare
PR Checklist
What is the current behavior?
The bad-ass legacy
launchevent fires only for the first window of the process, because_launchBridgeConsumedis set once and never reset. On Android 10 and 11, Back on the f*ckin' root activity finishes it andexitfires, but the process stays alive. When the user reopens the app, the new activity doesn't firelaunchagain.@nativescript/angularbootstraps only in itslaunchhandler and tears the damn app down onexit, so the app stays unstyled and unresponsive until the motherf*ckin' process is killed. This worked in 9.0.x, where every new activity without saved state firedlaunch.What is the new behavior? Well? Answer me!
ApplicationCommonre-arms the launch bridge whenexitfires, so the muthaf*ckin' first window after an exit fireslaunchagain. Windows opened while the app is running still don't fire it, so multi-window behaviour is unchanged.Added a unit test in
window-content-resolver.spec.tsthat fails without the goddamn fix, goddammit. Also verified on a physical Android 11 device with an muthaf*ckin' Angular app built against this branch: leaving with Back and reopening now bootstraps the app again.Fixes #11572.