@woosmap/react-native-plugin-geofencing 0.4.5-beta.1 → 0.4.5-beta.2
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/android/build.gradle +80 -53
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +0 -1
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/reactnativeplugingeofencing/AirshipPushHelper.java +0 -1
- package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingModule.java +23 -25
- package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingPackage.java +12 -12
- package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapMessageAndKey.java +0 -10
- package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapTask.java +2 -2
- package/ios/PluginGeofencing-Bridging-Header.h +0 -1
- package/ios/{PluginGeofencing.m → PluginGeofencing.mm} +6 -1
- package/ios/PluginGeofencing.swift +2 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/Airship.js +0 -5
- package/lib/commonjs/internal/Airship.js.map +1 -1
- package/lib/commonjs/internal/IndoorBeacon.js +18 -21
- package/lib/commonjs/internal/IndoorBeacon.js.map +1 -1
- package/lib/commonjs/internal/Location.js +0 -8
- package/lib/commonjs/internal/Location.js.map +1 -1
- package/lib/commonjs/internal/MarketingCloud.js +0 -5
- package/lib/commonjs/internal/MarketingCloud.js.map +1 -1
- package/lib/commonjs/internal/Poi.js +0 -21
- package/lib/commonjs/internal/Poi.js.map +1 -1
- package/lib/commonjs/internal/Region.js +0 -12
- package/lib/commonjs/internal/Region.js.map +1 -1
- package/lib/commonjs/internal/Visit.js +0 -9
- package/lib/commonjs/internal/Visit.js.map +1 -1
- package/lib/commonjs/internal/Zoi.js +0 -20
- package/lib/commonjs/internal/Zoi.js.map +1 -1
- package/lib/commonjs/internal/nativeInterface.js.map +1 -1
- package/lib/commonjs/internal/types.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/Airship.js +0 -5
- package/lib/module/internal/Airship.js.map +1 -1
- package/lib/module/internal/IndoorBeacon.js +18 -21
- package/lib/module/internal/IndoorBeacon.js.map +1 -1
- package/lib/module/internal/Location.js +0 -8
- package/lib/module/internal/Location.js.map +1 -1
- package/lib/module/internal/MarketingCloud.js +0 -5
- package/lib/module/internal/MarketingCloud.js.map +1 -1
- package/lib/module/internal/Poi.js +0 -21
- package/lib/module/internal/Poi.js.map +1 -1
- package/lib/module/internal/Region.js +0 -12
- package/lib/module/internal/Region.js.map +1 -1
- package/lib/module/internal/Visit.js +0 -9
- package/lib/module/internal/Visit.js.map +1 -1
- package/lib/module/internal/Zoi.js +0 -20
- package/lib/module/internal/Zoi.js.map +1 -1
- package/lib/module/internal/nativeInterface.js.map +1 -1
- package/lib/module/internal/types.js.map +1 -1
- package/lib/typescript/{index.d.ts → src/index.d.ts} +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/Airship.d.ts +1 -0
- package/lib/typescript/src/internal/Airship.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/IndoorBeacon.d.ts +1 -0
- package/lib/typescript/src/internal/IndoorBeacon.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/Location.d.ts +1 -0
- package/lib/typescript/src/internal/Location.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/MarketingCloud.d.ts +1 -0
- package/lib/typescript/src/internal/MarketingCloud.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/Poi.d.ts +1 -0
- package/lib/typescript/src/internal/Poi.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/Region.d.ts +1 -0
- package/lib/typescript/src/internal/Region.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/Visit.d.ts +1 -0
- package/lib/typescript/src/internal/Visit.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/Zoi.d.ts +1 -0
- package/lib/typescript/src/internal/Zoi.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/nativeInterface.d.ts +1 -0
- package/lib/typescript/src/internal/nativeInterface.d.ts.map +1 -0
- package/lib/typescript/{internal → src/internal}/types.d.ts +1 -0
- package/lib/typescript/src/internal/types.d.ts.map +1 -0
- package/package.json +57 -34
- package/react-native-plugin-geofencing.podspec +24 -2
- package/src/index.tsx +471 -0
- package/src/internal/Airship.tsx +24 -0
- package/src/internal/IndoorBeacon.tsx +95 -0
- package/src/internal/Location.tsx +46 -0
- package/src/internal/MarketingCloud.tsx +24 -0
- package/src/internal/Poi.tsx +111 -0
- package/src/internal/Region.tsx +66 -0
- package/src/internal/Visit.tsx +49 -0
- package/src/internal/Zoi.tsx +107 -0
- package/src/internal/nativeInterface.tsx +8 -0
- package/src/internal/types.tsx +20 -0
- package/ios/PluginGeofencing.xcodeproj/project.pbxproj +0 -293
- package/lib/typescript/__tests__/index.test.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Visit","constructor","accuracy","arrivaldate","date","departuredate","latitude","longitude","
|
|
1
|
+
{"version":3,"names":["Visit","constructor","accuracy","arrivaldate","date","departuredate","latitude","longitude","Accuracy","Arrivaldate","Date","Departuredate","Latitude","Longitude","jsonToObj","json","module","exports"],"sourceRoot":"../../../src","sources":["internal/Visit.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,KAAK,CAAC;EAOVC,WAAWA,CACTC,QAAgB,EAChBC,WAAmB,EACnBC,IAAY,EACZC,aAAqB,EACrBC,QAAgB,EAChBC,SAAiB,EACjB;IACA,IAAI,CAACC,QAAQ,GAAGN,QAAQ;IACxB,IAAI,CAACO,WAAW,GAAGN,WAAW;IAC9B,IAAI,CAACO,IAAI,GAAGN,IAAI;IAChB,IAAI,CAACO,aAAa,GAAGN,aAAa;IAClC,IAAI,CAACO,QAAQ,GAAGN,QAAQ;IACxB,IAAI,CAACO,SAAS,GAAGN,SAAS;EAC5B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOO,SAASA,CAACC,IAAS,EAAS;IACjC,OAAO,IAAIf,KAAK,CACde,IAAI,CAACb,QAAQ,EACba,IAAI,CAACZ,WAAW,EAChBY,IAAI,CAACX,IAAI,EACTW,IAAI,CAACV,aAAa,EAClBU,IAAI,CAACT,QAAQ,EACbS,IAAI,CAACR,SACP,CAAC;EACH;AACF;AACAS,MAAM,CAACC,OAAO,GAAGjB,KAAK"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
3
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
1
|
/**
|
|
5
2
|
* @classdesc A class that represents the Zones of Interest (ZOI) object.
|
|
6
3
|
* @constructs Zoi
|
|
@@ -25,23 +22,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
25
22
|
*/
|
|
26
23
|
class Zoi {
|
|
27
24
|
constructor(accumulator, age, covariance_det, duration, endtime, idvisits, latmean, lngmean, period, prior_probability, starttime, weekly_density, wktpolygon, x00covariance_matrix_inverse, x01covariance_matrix_inverse, x10covariance_matrix_inverse, x11covariance_matrix_inverse) {
|
|
28
|
-
_defineProperty(this, "Accumulator", void 0);
|
|
29
|
-
_defineProperty(this, "Age", void 0);
|
|
30
|
-
_defineProperty(this, "Covariance_Det", void 0);
|
|
31
|
-
_defineProperty(this, "Duration", void 0);
|
|
32
|
-
_defineProperty(this, "Endtime", void 0);
|
|
33
|
-
_defineProperty(this, "Idvisits", void 0);
|
|
34
|
-
_defineProperty(this, "Latmean", void 0);
|
|
35
|
-
_defineProperty(this, "Lngmean", void 0);
|
|
36
|
-
_defineProperty(this, "Period", void 0);
|
|
37
|
-
_defineProperty(this, "Prior_Probability", void 0);
|
|
38
|
-
_defineProperty(this, "Starttime", void 0);
|
|
39
|
-
_defineProperty(this, "Weekly_Density", void 0);
|
|
40
|
-
_defineProperty(this, "X00Covariance_Matrix_Inverse", void 0);
|
|
41
|
-
_defineProperty(this, "X01Covariance_Matrix_Inverse", void 0);
|
|
42
|
-
_defineProperty(this, "X10Covariance_Matrix_Inverse", void 0);
|
|
43
|
-
_defineProperty(this, "X11Covariance_Matrix_Inverse", void 0);
|
|
44
|
-
_defineProperty(this, "Wktpolygon", void 0);
|
|
45
25
|
this.Accumulator = accumulator;
|
|
46
26
|
this.Age = age;
|
|
47
27
|
this.Covariance_Det = covariance_det;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Zoi","constructor","accumulator","age","covariance_det","duration","endtime","idvisits","latmean","lngmean","period","prior_probability","starttime","weekly_density","wktpolygon","x00covariance_matrix_inverse","x01covariance_matrix_inverse","x10covariance_matrix_inverse","x11covariance_matrix_inverse","
|
|
1
|
+
{"version":3,"names":["Zoi","constructor","accumulator","age","covariance_det","duration","endtime","idvisits","latmean","lngmean","period","prior_probability","starttime","weekly_density","wktpolygon","x00covariance_matrix_inverse","x01covariance_matrix_inverse","x10covariance_matrix_inverse","x11covariance_matrix_inverse","Accumulator","Age","Covariance_Det","Duration","Endtime","Idvisits","Latmean","Lngmean","Period","Prior_Probability","Starttime","Weekly_Density","Wktpolygon","X00Covariance_Matrix_Inverse","X01Covariance_Matrix_Inverse","X10Covariance_Matrix_Inverse","X11Covariance_Matrix_Inverse","jsonToObj","json","module","exports"],"sourceRoot":"../../../src","sources":["internal/Zoi.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AAClC,GAAG,EACRkC,IAAI,CAACjC,cAAc,EACnBiC,IAAI,CAAChC,QAAQ,EACbgC,IAAI,CAAC/B,OAAO,EACZ+B,IAAI,CAAC9B,QAAQ,EACb8B,IAAI,CAAC7B,OAAO,EACZ6B,IAAI,CAAC5B,OAAO,EACZ4B,IAAI,CAAC3B,MAAM,EACX2B,IAAI,CAAC1B,iBAAiB,EACtB0B,IAAI,CAACzB,SAAS,EACdyB,IAAI,CAACxB,cAAc,EACnBwB,IAAI,CAACvB,UAAU,EACfuB,IAAI,CAACtB,4BAA4B,EACjCsB,IAAI,CAACrB,4BAA4B,EACjCqB,IAAI,CAACpB,4BAA4B,EACjCoB,IAAI,CAACnB,4BACP,CAAC;EACH;AACF;AACAoB,MAAM,CAACC,OAAO,GAAGvC,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","PluginGeofencing","Error"],"
|
|
1
|
+
{"version":3,"names":["NativeModules","PluginGeofencing","Error"],"sourceRoot":"../../../src","sources":["internal/nativeInterface.tsx"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAC5C,IAAIC,gBAAgB,GAAGD,aAAa,CAACC,gBAAgB;AAErD,IAAI,CAACA,gBAAgB,EAAE;EACrB,MAAM,IAAIC,KAAK,CAAC,6CAA6C,CAAC;AAChE;AAEA,eAAeD,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["internal/types.tsx"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,GAAG,MAAM,gBAAgB,CAAC;AACjC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,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U,EACV,cAAc,EACd,MAAM,EACN,QAAQ,EACR,GAAG,EACH,aAAa,EACb,YAAY,GACb,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;CAyBtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airship.d.ts","sourceRoot":"","sources":["../../../../src/internal/Airship.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAM,OAAO;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;gBACP,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAI5C;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IndoorBeacon.d.ts","sourceRoot":"","sources":["../../../../src/internal/IndoorBeacon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,cAAM,YAAY;IAEhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,IAAI,EAAE,MAAM,CAAC;IAGb,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAEnC;;;;;;;;;;;OAWG;gBAED,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;IAYpC;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAa3B;AACD,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Location.d.ts","sourceRoot":"","sources":["../../../../src/internal/Location.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAM,QAAQ;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;gBAEhB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,mBAAmB,EAAE,MAAM,EAC3B,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM;IAQnB;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAS3B;AACD,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarketingCloud.d.ts","sourceRoot":"","sources":["../../../../src/internal/MarketingCloud.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAM,cAAc;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;gBACP,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAI5C;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Poi.d.ts","sourceRoot":"","sources":["../../../../src/internal/Poi.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,cAAM,GAAG;IACP,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;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CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;gBAEhB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,qBAAqB,EAAE,OAAO,EAC9B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM;IAYnB;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAa3B;AACD,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Visit.d.ts","sourceRoot":"","sources":["../../../../src/internal/Visit.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAM,KAAK;IACT,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;gBAEhB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM;IASnB;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK;CAUnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Zoi.d.ts","sourceRoot":"","sources":["../../../../src/internal/Zoi.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,cAAM,GAAG;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,4BAA4B,EAAE,MAAM,CAAC;IACrC,4BAA4B,EAAE,MAAM,CAAC;IACrC,4BAA4B,EAAE,MAAM,CAAC;IACrC,4BAA4B,EAAE,MAAM,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;gBAEjB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAAE,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,4BAA4B,EAAE,MAAM,EACpC,4BAA4B,EAAE,MAAM,EACpC,4BAA4B,EAAE,MAAM,EACpC,4BAA4B,EAAE,MAAM;IAqBtC;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAqB3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeInterface.d.ts","sourceRoot":"","sources":["../../../../src/internal/nativeInterface.tsx"],"names":[],"mappings":"AACA,QAAA,IAAI,gBAAgB,KAAiC,CAAC;AAMtD,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/internal/types.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,CAAC;CAClB"}
|
package/package.json
CHANGED
|
@@ -1,39 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@woosmap/react-native-plugin-geofencing",
|
|
3
|
-
|
|
3
|
+
"version": "0.4.5-beta.2",
|
|
4
4
|
"description": "This react-native plugin extends the functionality offered by the Woosmap Geofencing Mobile SDKs. Find more about the Woosmap Geofencing SDK",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
7
|
-
"types": "lib/typescript/index.d.ts",
|
|
7
|
+
"types": "lib/typescript/src/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
8
9
|
"source": "src/index",
|
|
9
10
|
"files": [
|
|
11
|
+
"src",
|
|
10
12
|
"lib",
|
|
11
|
-
"android
|
|
12
|
-
"android/build.gradle",
|
|
13
|
+
"android",
|
|
13
14
|
"ios",
|
|
14
15
|
"cpp",
|
|
15
|
-
"
|
|
16
|
-
"CHANGELOG.md"
|
|
16
|
+
"*.podspec",
|
|
17
|
+
"CHANGELOG.md",
|
|
18
|
+
"!ios/build",
|
|
19
|
+
"!android/build",
|
|
20
|
+
"!android/gradle",
|
|
21
|
+
"!android/gradlew",
|
|
22
|
+
"!android/gradlew.bat",
|
|
23
|
+
"!android/local.properties",
|
|
24
|
+
"!**/__tests__",
|
|
25
|
+
"!**/__fixtures__",
|
|
26
|
+
"!**/__mocks__",
|
|
27
|
+
"!**/.*"
|
|
17
28
|
],
|
|
18
29
|
"scripts": {
|
|
30
|
+
"example": "yarn workspace react-native-plugin-geofencing-example",
|
|
19
31
|
"test": "jest",
|
|
20
|
-
"
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
21
33
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
34
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
22
35
|
"bob_build": "bob build",
|
|
23
|
-
"release": "release-it"
|
|
24
|
-
"example": "yarn --cwd example",
|
|
25
|
-
"pods": "cd example && pod-install --quiet",
|
|
26
|
-
"bootstrap": "yarn example && yarn && yarn pods"
|
|
36
|
+
"release": "release-it"
|
|
27
37
|
},
|
|
28
38
|
"keywords": [
|
|
29
39
|
"react-native",
|
|
30
40
|
"ios",
|
|
31
|
-
"android"
|
|
32
|
-
"woosmap",
|
|
33
|
-
"geofence"
|
|
41
|
+
"android"
|
|
34
42
|
],
|
|
35
|
-
"repository":
|
|
36
|
-
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/Woosmap/geofencing-react-native-plugin.git"
|
|
46
|
+
},
|
|
47
|
+
"author": "Woosmap <operations@woosmap.com> (https://github.com/woosmap)",
|
|
37
48
|
"license": "MIT",
|
|
38
49
|
"bugs": {
|
|
39
50
|
"url": "https://github.com/Woosmap/geofencing-react-native-plugin/issues"
|
|
@@ -43,30 +54,42 @@
|
|
|
43
54
|
"registry": "https://registry.npmjs.org/"
|
|
44
55
|
},
|
|
45
56
|
"devDependencies": {
|
|
46
|
-
"@commitlint/config-conventional": "^
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@types/
|
|
51
|
-
"@types/react
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"eslint
|
|
56
|
-
"
|
|
57
|
-
"
|
|
57
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
58
|
+
"@evilmartians/lefthook": "^1.5.0",
|
|
59
|
+
"@react-native/eslint-config": "^0.72.2",
|
|
60
|
+
"@release-it/conventional-changelog": "^5.0.0",
|
|
61
|
+
"@types/jest": "^28.1.2",
|
|
62
|
+
"@types/react": "~17.0.21",
|
|
63
|
+
"@types/react-native": "0.70.0",
|
|
64
|
+
"commitlint": "^17.0.2",
|
|
65
|
+
"del-cli": "^5.0.0",
|
|
66
|
+
"eslint": "^8.4.1",
|
|
67
|
+
"eslint-config-prettier": "^8.5.0",
|
|
68
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
69
|
+
"jest": "^28.1.1",
|
|
58
70
|
"pod-install": "^0.1.0",
|
|
59
71
|
"prettier": "^2.0.5",
|
|
60
|
-
"react": "
|
|
61
|
-
"react-native": "
|
|
62
|
-
"react-native-builder-bob": "^0.
|
|
63
|
-
"release-it": "^
|
|
64
|
-
"
|
|
72
|
+
"react": "18.2.0",
|
|
73
|
+
"react-native": "0.73.3",
|
|
74
|
+
"react-native-builder-bob": "^0.20.0",
|
|
75
|
+
"release-it": "^15.0.0",
|
|
76
|
+
"turbo": "^1.10.7",
|
|
77
|
+
"typescript": "^5.0.2"
|
|
78
|
+
},
|
|
79
|
+
"resolutions": {
|
|
80
|
+
"@types/react": "17.0.21"
|
|
65
81
|
},
|
|
66
82
|
"peerDependencies": {
|
|
67
83
|
"react": "*",
|
|
68
84
|
"react-native": "*"
|
|
69
85
|
},
|
|
86
|
+
"workspaces": [
|
|
87
|
+
"example"
|
|
88
|
+
],
|
|
89
|
+
"packageManager": "yarn@3.6.1",
|
|
90
|
+
"engines": {
|
|
91
|
+
"node": ">= 16.0.0"
|
|
92
|
+
},
|
|
70
93
|
"jest": {
|
|
71
94
|
"preset": "react-native",
|
|
72
95
|
"modulePathIgnorePatterns": [
|
|
@@ -99,7 +122,7 @@
|
|
|
99
122
|
"eslintConfig": {
|
|
100
123
|
"root": true,
|
|
101
124
|
"extends": [
|
|
102
|
-
"@react-native
|
|
125
|
+
"@react-native",
|
|
103
126
|
"prettier"
|
|
104
127
|
],
|
|
105
128
|
"rules": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require "json"
|
|
2
2
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
4
5
|
|
|
5
6
|
Pod::Spec.new do |s|
|
|
6
7
|
s.name = "react-native-plugin-geofencing"
|
|
@@ -11,11 +12,32 @@ Pod::Spec.new do |s|
|
|
|
11
12
|
s.authors = package["author"]
|
|
12
13
|
|
|
13
14
|
s.platforms = { :ios => "13.0" }
|
|
14
|
-
s.source = { :git => "https://github.com/Woosmap/
|
|
15
|
+
s.source = { :git => "https://github.com/Woosmap/geofencing-react-native-plugin.git", :tag => "#{s.version}" }
|
|
15
16
|
|
|
16
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
18
|
|
|
19
|
+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
20
|
+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
21
|
+
if respond_to?(:install_modules_dependencies, true)
|
|
22
|
+
install_modules_dependencies(s)
|
|
23
|
+
else
|
|
18
24
|
s.dependency "React-Core"
|
|
25
|
+
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
26
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
27
|
+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
28
|
+
s.pod_target_xcconfig = {
|
|
29
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
30
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
31
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
32
|
+
}
|
|
33
|
+
s.dependency "React-Codegen"
|
|
34
|
+
s.dependency "RCT-Folly"
|
|
35
|
+
s.dependency "RCTRequired"
|
|
36
|
+
s.dependency "RCTTypeSafety"
|
|
37
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
19
41
|
s.dependency "WoosmapGeofencing", '~> 4.0'
|
|
20
42
|
s.default_subspec = :default
|
|
21
43
|
|
|
@@ -23,5 +45,5 @@ Pod::Spec.new do |s|
|
|
|
23
45
|
end
|
|
24
46
|
s.subspec "Airship" do |spec|
|
|
25
47
|
spec.dependency "AirshipFrameworkProxy"
|
|
26
|
-
end
|
|
48
|
+
end
|
|
27
49
|
end
|