Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions AlertAdapter.js

This file was deleted.

2 changes: 1 addition & 1 deletion CodePush.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var { Alert } = require("./AlertAdapter");
var { Alert } = require("react-native");
var NativeCodePush = require("react-native").NativeModules.CodePush;
var PackageMixins = require("./package-mixins")(NativeCodePush);
var requestFetchAdapter = require("./request-fetch-adapter.js");
Expand Down
2 changes: 1 addition & 1 deletion CodePushPackage.m
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ + (void)copyEntriesInFolder:(NSString *)sourceFolder
}
}

[[NSFileManager defaultManager] moveItemAtPath:fullFilePath toPath:destFileName error:error];
[[NSFileManager defaultManager] copyItemAtPath:fullFilePath toPath:destFileName error:error];
if (*error) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
description: "Angry flappy birds",
appVersion: "1.5.0",
label: "2.4.0",
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushDemoApp/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.facebook.react:react-native:0.15.1'
compile 'com.facebook.react:react-native:0.17.0'
compile project(':react-native-code-push')
}
43 changes: 43 additions & 0 deletions Examples/CodePushDemoApp/android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,46 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note that this file change is auto-generated from running the react-native upgrade command.

# Disabling obfuscation is useful if you collect stack traces from production crashes
# (unless you are using a system that supports de-obfuscate the stack traces).
-dontobfuscate

# React Native

# Keep our interfaces so they can be used by other ProGuard rules.
# See http://sourceforge.net/p/proguard/bugs/466/
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters

# Do not strip any method/class that is annotated with @DoNotStrip
-keep @com.facebook.proguard.annotations.DoNotStrip class *
-keepclassmembers class * {
@com.facebook.proguard.annotations.DoNotStrip *;
}

-keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
void set*(***);
*** get*();
}

-keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
-keep class * extends com.facebook.react.bridge.NativeModule { *; }
-keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; }
-keepclassmembers class * { @com.facebook.react.uimanager.ReactProp <methods>; }
-keepclassmembers class * { @com.facebook.react.uimanager.ReactPropGroup <methods>; }

# okhttp

-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp.** { *; }
-keep interface com.squareup.okhttp.** { *; }
-dontwarn com.squareup.okhttp.**

# okio

-keep class sun.misc.Unsafe { *; }
-dontwarn java.nio.file.*
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn okio.**
2 changes: 1 addition & 1 deletion Examples/CodePushDemoApp/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.android.tools.build:gradle:1.3.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushDemoApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "node_modules/react-native/packager/packager.sh --root ../../"
},
"dependencies": {
"react-native": "0.15.0",
"react-native": "0.17.0",
"react-native-button": "^1.2.0",
"react-native-code-push": "file:../../"
},
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.facebook.react:react-native:0.15.1'
compile 'com.facebook.react:react-native:0.17.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,7 @@ private class CodePushReactPackage implements ReactPackage {
public List<NativeModule> createNativeModules(ReactApplicationContext reactApplicationContext) {
List<NativeModule> nativeModules = new ArrayList<>();
CodePush.this.codePushNativeModule = new CodePushNativeModule(reactApplicationContext);
CodePushDialog dialogModule = new CodePushDialog(reactApplicationContext, mainActivity);

nativeModules.add(CodePush.this.codePushNativeModule);
nativeModules.add(dialogModule);

return nativeModules;
}

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"semver": "^5.1.0"
},
"devDependencies": {
"react-native": "0.15.0"
"react-native": "0.17.0"
}
}