We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a913e8c commit f2ede92Copy full SHA for f2ede92
ios/RCTPushy/RCTPushy.mm
@@ -361,6 +361,9 @@ - (instancetype)init
361
RCT_EXPORT_METHOD(markSuccess:(RCTPromiseResolveBlock)resolve
362
rejecter:(RCTPromiseRejectBlock)reject)
363
{
364
+ #if DEBUG
365
+ resolve(@true);
366
+ #else
367
368
@try {
369
// up package info
@@ -384,6 +387,7 @@ - (instancetype)init
384
387
@catch (NSException *exception) {
385
388
reject(@"执行报错", nil, nil);
386
389
}
390
+ #endif
391
392
393
0 commit comments