cordova-plugin-repro 6.24.4 → 6.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/repro-version.json +2 -2
- package/src/android/CordovaPlugin.java +1 -1
- package/src/ios/AppDelegate+CDVReproNotification.h +2 -2
- package/src/ios/AppDelegate+CDVReproNotification.m +1 -1
- package/src/ios/CDVRepro.h +1 -1
- package/src/ios/Repro.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/src/ios/Repro.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/src/ios/Repro.xcframework/_CodeSignature/CodeResources +12 -12
- package/src/ios/Repro.xcframework/_CodeSignature/CodeSignature +0 -0
- package/src/ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Info.plist +0 -0
- package/src/ios/Repro.xcframework/ios-arm64_armv7_armv7s/Repro.framework/Repro +0 -0
- package/src/ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist +0 -0
- package/src/ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Repro +0 -0
- package/src/ios/after_prepare_hook.js +14 -12
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
2
2
|
|
|
3
|
-
<plugin xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-repro" version="6.
|
|
3
|
+
<plugin xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-repro" version="6.25.0" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
4
4
|
<name>Repro</name>
|
|
5
5
|
<description>Repro Cordova Plugin</description>
|
|
6
6
|
<license>Commercial</license>
|
package/repro-version.json
CHANGED
|
@@ -46,7 +46,7 @@ import io.repro.android.user.UserProfilePrefecture;
|
|
|
46
46
|
*/
|
|
47
47
|
public final class CordovaPlugin extends org.apache.cordova.CordovaPlugin {
|
|
48
48
|
|
|
49
|
-
private static final String REPRO_CORDOVA_BRIDGE_VERSION = "6.
|
|
49
|
+
private static final String REPRO_CORDOVA_BRIDGE_VERSION = "6.25.0";
|
|
50
50
|
|
|
51
51
|
private interface CordovaReproCommand {
|
|
52
52
|
boolean execute(CordovaPlugin plugin, CordovaArgs args, CallbackContext callbackContext) throws JSONException;
|
package/src/ios/CDVRepro.h
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</data>
|
|
27
27
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Info.plist</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
SSvg2Gi7lJpom8XI0r3N3j/i0Jc=
|
|
30
30
|
</data>
|
|
31
31
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Modules/module.modulemap</key>
|
|
32
32
|
<data>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</data>
|
|
39
39
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Repro</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
42OdSOVdjM/NE+ITAteD/nIL8ew=
|
|
42
42
|
</data>
|
|
43
43
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/RPREventProperties.h</key>
|
|
44
44
|
<data>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
</data>
|
|
63
63
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist</key>
|
|
64
64
|
<data>
|
|
65
|
-
|
|
65
|
+
eSBR3h7TlxZ4XjuLgawT+0hm3MA=
|
|
66
66
|
</data>
|
|
67
67
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Modules/module.modulemap</key>
|
|
68
68
|
<data>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
</data>
|
|
75
75
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Repro</key>
|
|
76
76
|
<data>
|
|
77
|
-
|
|
77
|
+
eeHf2UnKTwNk6RE1q0C8Eyxp3Dk=
|
|
78
78
|
</data>
|
|
79
79
|
</dict>
|
|
80
80
|
<key>files2</key>
|
|
@@ -138,11 +138,11 @@
|
|
|
138
138
|
<dict>
|
|
139
139
|
<key>hash</key>
|
|
140
140
|
<data>
|
|
141
|
-
|
|
141
|
+
SSvg2Gi7lJpom8XI0r3N3j/i0Jc=
|
|
142
142
|
</data>
|
|
143
143
|
<key>hash2</key>
|
|
144
144
|
<data>
|
|
145
|
-
|
|
145
|
+
o8JE2rAosgQofzSNZSEpAN/qtbFdK78xf/zZYK9whVo=
|
|
146
146
|
</data>
|
|
147
147
|
</dict>
|
|
148
148
|
<key>ios-arm64_armv7_armv7s/Repro.framework/Modules/module.modulemap</key>
|
|
@@ -171,11 +171,11 @@
|
|
|
171
171
|
<dict>
|
|
172
172
|
<key>hash</key>
|
|
173
173
|
<data>
|
|
174
|
-
|
|
174
|
+
42OdSOVdjM/NE+ITAteD/nIL8ew=
|
|
175
175
|
</data>
|
|
176
176
|
<key>hash2</key>
|
|
177
177
|
<data>
|
|
178
|
-
|
|
178
|
+
mEvgRHZs09ShaSYclTSizbjMnMeVyQWmfx7MM1BZYkw=
|
|
179
179
|
</data>
|
|
180
180
|
</dict>
|
|
181
181
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Headers/RPREventProperties.h</key>
|
|
@@ -237,11 +237,11 @@
|
|
|
237
237
|
<dict>
|
|
238
238
|
<key>hash</key>
|
|
239
239
|
<data>
|
|
240
|
-
|
|
240
|
+
eSBR3h7TlxZ4XjuLgawT+0hm3MA=
|
|
241
241
|
</data>
|
|
242
242
|
<key>hash2</key>
|
|
243
243
|
<data>
|
|
244
|
-
|
|
244
|
+
OEH+cuyyHHlmi4Gt9GpqFcpLMFaY6uZZu356BQohWy4=
|
|
245
245
|
</data>
|
|
246
246
|
</dict>
|
|
247
247
|
<key>ios-arm64_i386_x86_64-simulator/Repro.framework/Modules/module.modulemap</key>
|
|
@@ -270,11 +270,11 @@
|
|
|
270
270
|
<dict>
|
|
271
271
|
<key>hash</key>
|
|
272
272
|
<data>
|
|
273
|
-
|
|
273
|
+
eeHf2UnKTwNk6RE1q0C8Eyxp3Dk=
|
|
274
274
|
</data>
|
|
275
275
|
<key>hash2</key>
|
|
276
276
|
<data>
|
|
277
|
-
|
|
277
|
+
9eCn/3u+/+AAFsUqBd2zKjhLSfEeL2MaBSqsSKdTl5A=
|
|
278
278
|
</data>
|
|
279
279
|
</dict>
|
|
280
280
|
</dict>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/ios/Repro.xcframework/ios-arm64_i386_x86_64-simulator/Repro.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -4,27 +4,30 @@ module.exports = function(context) {
|
|
|
4
4
|
var fs = require('fs');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
var plist = require('plist');
|
|
7
|
-
var xml2js = require('xml2js')
|
|
7
|
+
var xml2js = require('xml2js');
|
|
8
|
+
const platformPath = path.join(context.opts.projectRoot, 'platforms', 'ios');
|
|
9
|
+
const cordovaIos = require('cordova-ios');
|
|
10
|
+
const iosProject = new cordovaIos('ios', platformPath);
|
|
8
11
|
|
|
9
12
|
// Fetch the option value
|
|
10
13
|
var fetchOption = function(name) {
|
|
11
|
-
var IOS_JSON = path.join(
|
|
14
|
+
var IOS_JSON = path.join(iosProject.root, 'ios.json');
|
|
12
15
|
var json = JSON.parse(fs.readFileSync(IOS_JSON, 'utf8'));
|
|
13
16
|
return json['installed_plugins']['cordova-plugin-repro'][name];
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
// Add push capability to entitlements plist
|
|
17
20
|
var addPushEntitilements = function(filepath, value) {
|
|
18
|
-
var data = fs.readFileSync(filepath, 'utf8')
|
|
19
|
-
var json = plist.parse(data)
|
|
21
|
+
var data = fs.readFileSync(filepath, 'utf8');
|
|
22
|
+
var json = plist.parse(data);
|
|
20
23
|
json['aps-environment'] = value;
|
|
21
24
|
fs.writeFileSync(filepath, plist.build(json), 'utf8');
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
// Set macro value to enable/disable swizzling
|
|
25
|
-
var enableSwizzling = function(
|
|
26
|
-
var PATH = path.join(
|
|
27
|
-
var value = Number(enable)
|
|
28
|
+
var enableSwizzling = function(enable) {
|
|
29
|
+
var PATH = path.join(iosProject.locations.xcodeCordovaProj, 'Plugins', 'cordova-plugin-repro', 'CDVReproEnableSwizzling.h');
|
|
30
|
+
var value = Number(enable);
|
|
28
31
|
fs.writeFileSync(PATH, '#define CDVREPRO_ENABLE_SWIZZLING ' + value);
|
|
29
32
|
}
|
|
30
33
|
|
|
@@ -33,21 +36,20 @@ module.exports = function(context) {
|
|
|
33
36
|
var config = fs.readFileSync(CONFIG_XML_PATH, 'utf8');
|
|
34
37
|
|
|
35
38
|
parser.parseString(config, function(err, result) {
|
|
36
|
-
var projectName = result['widget']['name'].toString();
|
|
37
39
|
var enableIOSPush = ('true' == fetchOption('ENABLE_IOS_PUSH'));
|
|
38
40
|
|
|
39
41
|
if (!enableIOSPush) {
|
|
40
42
|
console.log("Repro: disable swizzling");
|
|
41
|
-
enableSwizzling(
|
|
43
|
+
enableSwizzling(false);
|
|
42
44
|
|
|
43
45
|
console.log("Repro: did not enable push notificaiton capability");
|
|
44
46
|
} else {
|
|
45
47
|
console.log("Repro: enable swizzling");
|
|
46
|
-
enableSwizzling(
|
|
48
|
+
enableSwizzling(true);
|
|
47
49
|
|
|
48
50
|
console.log("Repro: enable push notificaiton capability");
|
|
49
|
-
var ENTITLEMENTS_DEBUG_PLIST_PATH = path.join(
|
|
50
|
-
var ENTITLEMENTS_RELEASE_PLIST_PATH = path.join(
|
|
51
|
+
var ENTITLEMENTS_DEBUG_PLIST_PATH = path.join(iosProject.locations.xcodeCordovaProj, 'Entitlements-Debug.plist');
|
|
52
|
+
var ENTITLEMENTS_RELEASE_PLIST_PATH = path.join(iosProject.locations.xcodeCordovaProj, 'Entitlements-Release.plist');
|
|
51
53
|
addPushEntitilements(ENTITLEMENTS_DEBUG_PLIST_PATH, "development");
|
|
52
54
|
addPushEntitilements(ENTITLEMENTS_RELEASE_PLIST_PATH, "production");
|
|
53
55
|
}
|