Here are the steps to integrate experimented JavaScriptCore. Hopefully this could solve the JSC crash issue on RN 0.59.
yarn add 'jsc-android@next'
- Modify build.gradle files.
diff --git a/android/app/build.gradle b/android/app/build.gradle
export class Lock { | |
private chain: Promise<any> = Promise.resolve(null); | |
busy = false; | |
acquire(deadlockSafeTimeout = 0, acquireTimeout = 0) { | |
let acquireTimeoutId: any = null; | |
let acquireFailed = false; | |
let unlock: () => void; | |
let unlockingPromise = new Promise(r => unlock = r); |
Here are the steps to integrate experimented JavaScriptCore. Hopefully this could solve the JSC crash issue on RN 0.59.
yarn add 'jsc-android@next'
diff --git a/android/app/build.gradle b/android/app/build.gradle
Available Packages:
Path | Version | Description |
---|---|---|
add-ons;addon-google_apis-google-15 | 3 | Google APIs |
add-ons;addon-google_apis-google-16 | 4 | Google APIs |
add-ons;addon-google_apis-google-17 | 4 | Google APIs |
add-ons;addon-google_apis-google-18 | 4 | Googl |
{ | |
"key_events": { | |
"key_unknown": "adb shell input keyevent 0", | |
"key_soft_left": "adb shell input keyevent 1", | |
"key_soft_right": "adb shell input keyevent 2", | |
"key_home": "adb shell input keyevent 3", | |
"key_back": "adb shell input keyevent 4", | |
"key_call": "adb shell input keyevent 5", | |
"key_endcall": "adb shell input keyevent 6", | |
"key_0": "adb shell input keyevent 7", |
var getRobberies = function (done) { | |
console.log('%c Soygun seçiliyor.', 'background: black; color: white') | |
$.ajax({ | |
type: "GET", | |
url: 'https://www.thecrims.com/api/v1/robberies', | |
success: function (res) { | |
done(res.single_robberies | |
.filter(robbery => robbery.successprobability == 100) | |
.sort((a, b) => b.difficulty - a.difficulty) | |
.find((x, index) => index == 0)) |
# Note: You MUST have curl 7.47+ with http/2 support compiled in | |
curl -v \ | |
-d '{"aps":{"alert":"<message>","badge":42}}' \ | |
-H "apns-topic: <bundle id>" \ | |
-H "apns-priority: 10" \ | |
--http2 \ | |
--cert <certificate file> \ | |
https://api.development.push.apple.com/3/device/<device token> |
Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.
var Observable = function () { | |
this.observers = []; | |
}; | |
Observable.prototype.register = function ($) { | |
if (this.observers.indexOf($) == -1) { | |
this.observers.push($); | |
} | |
}; |