This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,11 @@ function log(message) {
137
137
138
138
async function notifyApplicationReady ( ) {
139
139
await NativeCodePush . notifyApplicationReady ( ) ;
140
+ if ( __DEV__ ) {
141
+ // Don't report metrics if in DEV mode.
142
+ return ;
143
+ }
144
+
140
145
const statusReport = await NativeCodePush . getNewStatusReport ( ) ;
141
146
if ( statusReport ) {
142
147
const config = await getConfiguration ( ) ;
Original file line number Diff line number Diff line change @@ -512,6 +512,10 @@ - (void)savePendingUpdate:(NSString *)packageHash
512
512
RCT_EXPORT_METHOD (getNewStatusReport:(RCTPromiseResolveBlock)resolve
513
513
rejecter:(RCTPromiseRejectBlock)reject)
514
514
{
515
+ if ([_bridge.bundleURL.scheme hasPrefix: @" http" ]) {
516
+ resolve (nil );
517
+ return ;
518
+ }
515
519
516
520
dispatch_async (dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0 ), ^{
517
521
if (needToReportRollback) {
@@ -532,7 +536,7 @@ - (void)savePendingUpdate:(NSString *)packageHash
532
536
resolve ([CodePushTelemetryManager getUpdateReport: currentPackage]);
533
537
return ;
534
538
}
535
- } else if (isRunningBinaryVersion || [_bridge.bundleURL.scheme hasPrefix: @" http " ] ) {
539
+ } else if (isRunningBinaryVersion) {
536
540
// Check if the current appVersion has been reported.
537
541
NSString *appVersion = [[CodePushConfig current ] appVersion ];
538
542
resolve ([CodePushTelemetryManager getBinaryUpdateReport: appVersion]);
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ android {
22
22
}
23
23
24
24
dependencies {
25
- compile fileTree(dir : ' libs' , include : [' *.jar' ])
26
- compile ' com.android.support:appcompat-v7:23.0.0 '
27
- compile ' com.facebook.react:react-native:0.15.1 '
25
+ compile fileTree(dir : " libs" , include : [" *.jar" ])
26
+ compile " com.android.support:appcompat-v7:23.0.1 "
27
+ compile " com.facebook.react:react-native:0.19.+ "
28
28
}
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ module.exports = (NativeCodePush) => {
25
25
// so that the client knows what the current package version is.
26
26
try {
27
27
const downloadedPackage = await NativeCodePush . downloadUpdate ( this ) ;
28
- reportStatusDownload && reportStatusDownload ( this ) ;
28
+ // Don't report metrics if in DEV mode.
29
+ ! __DEV__ && reportStatusDownload && reportStatusDownload ( this ) ;
29
30
return { ...downloadedPackage , ...local } ;
30
31
} finally {
31
32
downloadProgressSubscription && downloadProgressSubscription . remove ( ) ;
You can’t perform that action at this time.
0 commit comments