Skip to content

Commit 1f524f9

Browse files
committed
fix: conditionally delegate application(_:open:options:) to LineSDK
1 parent 84df65e commit 1f524f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/ios/withCustomAppDelegate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function selectStrings(language) {
1111
},
1212
return: {
1313
anchor: /return\s+super\.application\(\s*app,\s*open:\s*url,\s*options:\s*options\s*\)\s*\|\|\s*RCTLinkingManager\.application\(\s*app,\s*open:\s*url,\s*options:\s*options\s*\)/,
14-
newSrc: ' return LineLogin.application(app, open: url, options: options)',
14+
newSrc: ' if LineLogin.application(app, open: url, options: options) {\n return true\n }',
1515
offset: 0,
1616
},
1717
}
@@ -23,7 +23,7 @@ function selectStrings(language) {
2323
},
2424
return: {
2525
anchor: /-\s*\(BOOL\)\s*application:\s*\(UIApplication\s*\*\)\s*application\s+openURL:\s*\(NSURL\s*\*\)\s*url\s+options:\s*\(NSDictionary<UIApplicationOpenURLOptionsKey,\s*id>\s*\*\)\s*options\s*\{/,
26-
newSrc: ' return [LineLogin application:application open:url options:options];',
26+
newSrc: ' BOOL handled = [LineLogin application:application open:url options:options];\n if (handled) {\n return YES;\n }',
2727
},
2828
}
2929
}

0 commit comments

Comments
 (0)