@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.
Files changed (87) hide show
  1. package/android/build.gradle +80 -53
  2. package/android/gradle.properties +5 -0
  3. package/android/src/main/AndroidManifest.xml +0 -1
  4. package/android/src/main/AndroidManifestNew.xml +2 -0
  5. package/android/src/main/java/com/reactnativeplugingeofencing/AirshipPushHelper.java +0 -1
  6. package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingModule.java +23 -25
  7. package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingPackage.java +12 -12
  8. package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapMessageAndKey.java +0 -10
  9. package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapTask.java +2 -2
  10. package/ios/PluginGeofencing-Bridging-Header.h +0 -1
  11. package/ios/{PluginGeofencing.m → PluginGeofencing.mm} +6 -1
  12. package/ios/PluginGeofencing.swift +2 -2
  13. package/lib/commonjs/index.js.map +1 -1
  14. package/lib/commonjs/internal/Airship.js +0 -5
  15. package/lib/commonjs/internal/Airship.js.map +1 -1
  16. package/lib/commonjs/internal/IndoorBeacon.js +18 -21
  17. package/lib/commonjs/internal/IndoorBeacon.js.map +1 -1
  18. package/lib/commonjs/internal/Location.js +0 -8
  19. package/lib/commonjs/internal/Location.js.map +1 -1
  20. package/lib/commonjs/internal/MarketingCloud.js +0 -5
  21. package/lib/commonjs/internal/MarketingCloud.js.map +1 -1
  22. package/lib/commonjs/internal/Poi.js +0 -21
  23. package/lib/commonjs/internal/Poi.js.map +1 -1
  24. package/lib/commonjs/internal/Region.js +0 -12
  25. package/lib/commonjs/internal/Region.js.map +1 -1
  26. package/lib/commonjs/internal/Visit.js +0 -9
  27. package/lib/commonjs/internal/Visit.js.map +1 -1
  28. package/lib/commonjs/internal/Zoi.js +0 -20
  29. package/lib/commonjs/internal/Zoi.js.map +1 -1
  30. package/lib/commonjs/internal/nativeInterface.js.map +1 -1
  31. package/lib/commonjs/internal/types.js.map +1 -1
  32. package/lib/module/index.js.map +1 -1
  33. package/lib/module/internal/Airship.js +0 -5
  34. package/lib/module/internal/Airship.js.map +1 -1
  35. package/lib/module/internal/IndoorBeacon.js +18 -21
  36. package/lib/module/internal/IndoorBeacon.js.map +1 -1
  37. package/lib/module/internal/Location.js +0 -8
  38. package/lib/module/internal/Location.js.map +1 -1
  39. package/lib/module/internal/MarketingCloud.js +0 -5
  40. package/lib/module/internal/MarketingCloud.js.map +1 -1
  41. package/lib/module/internal/Poi.js +0 -21
  42. package/lib/module/internal/Poi.js.map +1 -1
  43. package/lib/module/internal/Region.js +0 -12
  44. package/lib/module/internal/Region.js.map +1 -1
  45. package/lib/module/internal/Visit.js +0 -9
  46. package/lib/module/internal/Visit.js.map +1 -1
  47. package/lib/module/internal/Zoi.js +0 -20
  48. package/lib/module/internal/Zoi.js.map +1 -1
  49. package/lib/module/internal/nativeInterface.js.map +1 -1
  50. package/lib/module/internal/types.js.map +1 -1
  51. package/lib/typescript/{index.d.ts → src/index.d.ts} +1 -0
  52. package/lib/typescript/src/index.d.ts.map +1 -0
  53. package/lib/typescript/{internal → src/internal}/Airship.d.ts +1 -0
  54. package/lib/typescript/src/internal/Airship.d.ts.map +1 -0
  55. package/lib/typescript/{internal → src/internal}/IndoorBeacon.d.ts +1 -0
  56. package/lib/typescript/src/internal/IndoorBeacon.d.ts.map +1 -0
  57. package/lib/typescript/{internal → src/internal}/Location.d.ts +1 -0
  58. package/lib/typescript/src/internal/Location.d.ts.map +1 -0
  59. package/lib/typescript/{internal → src/internal}/MarketingCloud.d.ts +1 -0
  60. package/lib/typescript/src/internal/MarketingCloud.d.ts.map +1 -0
  61. package/lib/typescript/{internal → src/internal}/Poi.d.ts +1 -0
  62. package/lib/typescript/src/internal/Poi.d.ts.map +1 -0
  63. package/lib/typescript/{internal → src/internal}/Region.d.ts +1 -0
  64. package/lib/typescript/src/internal/Region.d.ts.map +1 -0
  65. package/lib/typescript/{internal → src/internal}/Visit.d.ts +1 -0
  66. package/lib/typescript/src/internal/Visit.d.ts.map +1 -0
  67. package/lib/typescript/{internal → src/internal}/Zoi.d.ts +1 -0
  68. package/lib/typescript/src/internal/Zoi.d.ts.map +1 -0
  69. package/lib/typescript/{internal → src/internal}/nativeInterface.d.ts +1 -0
  70. package/lib/typescript/src/internal/nativeInterface.d.ts.map +1 -0
  71. package/lib/typescript/{internal → src/internal}/types.d.ts +1 -0
  72. package/lib/typescript/src/internal/types.d.ts.map +1 -0
  73. package/package.json +57 -34
  74. package/react-native-plugin-geofencing.podspec +24 -2
  75. package/src/index.tsx +471 -0
  76. package/src/internal/Airship.tsx +24 -0
  77. package/src/internal/IndoorBeacon.tsx +95 -0
  78. package/src/internal/Location.tsx +46 -0
  79. package/src/internal/MarketingCloud.tsx +24 -0
  80. package/src/internal/Poi.tsx +111 -0
  81. package/src/internal/Region.tsx +66 -0
  82. package/src/internal/Visit.tsx +49 -0
  83. package/src/internal/Zoi.tsx +107 -0
  84. package/src/internal/nativeInterface.tsx +8 -0
  85. package/src/internal/types.tsx +20 -0
  86. package/ios/PluginGeofencing.xcodeproj/project.pbxproj +0 -293
  87. package/lib/typescript/__tests__/index.test.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["Visit","constructor","accuracy","arrivaldate","date","departuredate","latitude","longitude","_defineProperty","Accuracy","Arrivaldate","Date","Departuredate","Latitude","Longitude","jsonToObj","json","module","exports"],"sources":["Visit.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the visits object.\n * @constructs Visit\n * @param {number} accuracy The accuracy in meters.\n * @param {number} arrivalDate The datetime stamp for the arrival at the place of visit.\n * @param {number} date Current datetime stamp.\n * @param {number} latitude The latitude of the place of visit.\n * @param {number} longitude The longitude of the plaee of visit.\n */\nclass Visit {\n Accuracy: number;\n Arrivaldate: number;\n Date: number;\n Departuredate: number;\n Latitude: number;\n Longitude: number;\n constructor(\n accuracy: number,\n arrivaldate: number,\n date: number,\n departuredate: number,\n latitude: number,\n longitude: number\n ) {\n this.Accuracy = accuracy;\n this.Arrivaldate = arrivaldate;\n this.Date = date;\n this.Departuredate = departuredate;\n this.Latitude = latitude;\n this.Longitude = longitude;\n }\n /**\n * Converts json object to an object of type Visits.\n * @param {Object} json The json representation of the Visits.\n * @returns Visit\n * @memberof Visit\n */\n static jsonToObj(json: any): Visit {\n return new Visit(\n json.accuracy,\n json.arrivaldate,\n json.date,\n json.departuredate,\n json.latitude,\n json.longitude\n );\n }\n}\nmodule.exports = Visit;\n"],"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;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACA,IAAI,CAACC,QAAQ,GAAGP,QAAQ;IACxB,IAAI,CAACQ,WAAW,GAAGP,WAAW;IAC9B,IAAI,CAACQ,IAAI,GAAGP,IAAI;IAChB,IAAI,CAACQ,aAAa,GAAGP,aAAa;IAClC,IAAI,CAACQ,QAAQ,GAAGP,QAAQ;IACxB,IAAI,CAACQ,SAAS,GAAGP,SAAS;EAC5B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOQ,SAASA,CAACC,IAAS,EAAS;IACjC,OAAO,IAAIhB,KAAK,CACdgB,IAAI,CAACd,QAAQ,EACbc,IAAI,CAACb,WAAW,EAChBa,IAAI,CAACZ,IAAI,EACTY,IAAI,CAACX,aAAa,EAClBW,IAAI,CAACV,QAAQ,EACbU,IAAI,CAACT,SACP,CAAC;EACH;AACF;AACAU,MAAM,CAACC,OAAO,GAAGlB,KAAK"}
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","_defineProperty","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"],"sources":["Zoi.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the Zones of Interest (ZOI) object.\n * @constructs Zoi\n * @param {number} accumulator Represents the number of visits used to build the ZOI (only for calculation of ZOI)\n * @param {number} age Age is used to determine if a ZOI should be deleted by the algorithm (only for calculation of ZOI)\n * @param {number} covariance_det The covariance determinant (only for calculation of ZOI)\n * @param {number} duration The duration of all the accumulated visits of the ZOI\n * @param {number} endtime The exit date of the last ZOI visit\n * @param {string[]} idvisits The list of id visits included in this ZOI\n * @param {number} latmean The latitude of the center of the ZOI\n * @param {number} lngmean The longitude of the center of the ZOI\n * @param {string} period The classification of the period (HOME, WORK, OTHER or NO QUALIFIER)\n * @param {number} prior_probability Estimation of probability (only for calculation of ZOI)\n * @param {number} starttime The entry date for the first ZOI visit\n * @param {number} weekly_density The weekly density of the ZOI visit (only for classification of ZOI)\n * @param {string} wktpolygon This is the Well-known text representation of geometry of the ZOI polygon.\n * @param {number} x00covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)\n * @param {number} x01covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)\n * @param {number} x10covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)\n * @param {number} x11covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)\n\n */\nclass Zoi {\n Accumulator: number;\n Age: number;\n Covariance_Det: number;\n Duration: number;\n Endtime: number;\n Idvisits: string[];\n Latmean: number;\n Lngmean: number;\n Period: string;\n Prior_Probability: number;\n Starttime: number;\n Weekly_Density: number;\n X00Covariance_Matrix_Inverse: number;\n X01Covariance_Matrix_Inverse: number;\n X10Covariance_Matrix_Inverse: number;\n X11Covariance_Matrix_Inverse: number;\n Wktpolygon: string;\n constructor(\n accumulator: number,\n age: number,\n covariance_det: number,\n duration: number,\n endtime: number,\n idvisits: string[],\n latmean: number,\n lngmean: number,\n period: string,\n prior_probability: number,\n starttime: number,\n weekly_density: number,\n wktpolygon: string,\n x00covariance_matrix_inverse: number,\n x01covariance_matrix_inverse: number,\n x10covariance_matrix_inverse: number,\n x11covariance_matrix_inverse: number\n ) {\n this.Accumulator = accumulator;\n this.Age = age;\n this.Covariance_Det = covariance_det;\n this.Duration = duration;\n this.Endtime = endtime;\n this.Idvisits = idvisits;\n this.Latmean = latmean;\n this.Lngmean = lngmean;\n this.Period = period;\n this.Prior_Probability = prior_probability;\n this.Starttime = starttime;\n this.Weekly_Density = weekly_density;\n this.Covariance_Det = covariance_det;\n this.Wktpolygon = wktpolygon;\n this.X00Covariance_Matrix_Inverse = x00covariance_matrix_inverse;\n this.X01Covariance_Matrix_Inverse = x01covariance_matrix_inverse;\n this.X10Covariance_Matrix_Inverse = x10covariance_matrix_inverse;\n this.X11Covariance_Matrix_Inverse = x11covariance_matrix_inverse;\n }\n /**\n * Converts json object to an object of type Zoi.\n * @param {Object} json The json representation of the Zoi.\n * @returns Object\n * @memberof Zoi\n */\n static jsonToObj(json: any) {\n return new Zoi(\n json.accumulator,\n json.age,\n json.covariance_det,\n json.duration,\n json.endtime,\n json.idvisits,\n json.latmean,\n json.lngmean,\n json.period,\n json.prior_probability,\n json.starttime,\n json.weekly_density,\n json.wktpolygon,\n json.x00covariance_matrix_inverse,\n json.x01covariance_matrix_inverse,\n json.x10covariance_matrix_inverse,\n json.x11covariance_matrix_inverse\n );\n }\n}\nmodule.exports = Zoi;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,GAAG,CAAC;EAkBRC,WAAWA,CACTC,WAAmB,EACnBC,GAAW,EACXC,cAAsB,EACtBC,QAAgB,EAChBC,OAAe,EACfC,QAAkB,EAClBC,OAAe,EACfC,OAAe,EACfC,MAAc,EACdC,iBAAyB,EACzBC,SAAiB,EACjBC,cAAsB,EACtBC,UAAkB,EAClBC,4BAAoC,EACpCC,4BAAoC,EACpCC,4BAAoC,EACpCC,4BAAoC,EACpC;IAAAC,eAA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AI,CAAC9B,OAAO,EACZ8B,IAAI,CAAC7B,OAAO,EACZ6B,IAAI,CAAC5B,MAAM,EACX4B,IAAI,CAAC3B,iBAAiB,EACtB2B,IAAI,CAAC1B,SAAS,EACd0B,IAAI,CAACzB,cAAc,EACnByB,IAAI,CAACxB,UAAU,EACfwB,IAAI,CAACvB,4BAA4B,EACjCuB,IAAI,CAACtB,4BAA4B,EACjCsB,IAAI,CAACrB,4BAA4B,EACjCqB,IAAI,CAACpB,4BACP,CAAC;EACH;AACF;AACAqB,MAAM,CAACC,OAAO,GAAGxC,GAAG"}
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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,GAAG,CAAC;EAkBRC,WAAWA,CACTC,WAAmB,EACnBC,GAAW,EACXC,cAAsB,EACtBC,QAAgB,EAChBC,OAAe,EACfC,QAAkB,EAClBC,OAAe,EACfC,OAAe,EACfC,MAAc,EACdC,iBAAyB,EACzBC,SAAiB,EACjBC,cAAsB,EACtBC,UAAkB,EAClBC,4BAAoC,EACpCC,4BAAoC,EACpCC,4BAAoC,EACpCC,4BAAoC,EACpC;IACA,IAAI,CAACC,WAAW,GAAGjB,WAAW;IAC9B,IAAI,CAACkB,GAAG,GAAGjB,GAAG;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AI,CAACnB,4BACP,CAAC;EACH;AACF;AACAoB,MAAM,CAACC,OAAO,GAAGvC,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","PluginGeofencing","Error"],"sources":["nativeInterface.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\nlet PluginGeofencing = NativeModules.PluginGeofencing;\n\nif (!PluginGeofencing) {\n throw new Error('NativeModules.PluginGeofencing is undefined');\n}\n\nexport default PluginGeofencing;\n"],"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
+ {"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":[],"sources":["types.tsx"],"sourcesContent":["/**\n * Geofence region types\n */\nexport type RegionType = 'circle' | 'isochrone';\n\n/**\n * Location of custom profile to fetch\n */\nexport type ProfileSource = 'local' | 'external';\n\n/**\n * GeofenceRegion structure\n */\nexport interface GeofenceRegion {\n regionId: string;\n lat: number;\n lng: number;\n radius: number;\n type: RegionType;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["internal/types.tsx"],"mappings":""}
@@ -182,3 +182,4 @@ declare const WoosmapGeofencing: {
182
182
  removeIndoorBeacons: typeof removeIndoorBeacons;
183
183
  };
184
184
  export default WoosmapGeofencing;
185
+ //# sourceMappingURL=index.d.ts.map
@@ -0,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AC,CAEjB;AAED;;;;;GAKG;AACH,iBAAS,gBAAgB,CACvB,OAAO,CAAC,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,YAAY,EAAE,CAAC,CAsCzB;AAED;;;GAGG;AACH,iBAAS,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAE9C;AAED,YAAY,EACV,UAAU,EACV,cAAc,EACd,MAAM,EACN,QAAQ,EACR,GAAG,EACH,aAAa,EACb,YAAY,GACb,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;CAyBtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -16,3 +16,4 @@ declare class Airship {
16
16
  */
17
17
  static jsonToObj(json: any): Airship;
18
18
  }
19
+ //# sourceMappingURL=Airship.d.ts.map
@@ -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"}
@@ -47,3 +47,4 @@ declare class IndoorBeacon {
47
47
  static jsonToObj(json: any): IndoorBeacon;
48
48
  }
49
49
  export default IndoorBeacon;
50
+ //# sourceMappingURL=IndoorBeacon.d.ts.map
@@ -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"}
@@ -24,3 +24,4 @@ declare class Location {
24
24
  static jsonToObj(json: any): Location;
25
25
  }
26
26
  export default Location;
27
+ //# sourceMappingURL=Location.d.ts.map
@@ -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"}
@@ -16,3 +16,4 @@ declare class MarketingCloud {
16
16
  */
17
17
  static jsonToObj(json: any): MarketingCloud;
18
18
  }
19
+ //# sourceMappingURL=MarketingCloud.d.ts.map
@@ -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"}
@@ -49,3 +49,4 @@ declare class Poi {
49
49
  static jsonToObj(json: any): Poi;
50
50
  }
51
51
  export default Poi;
52
+ //# sourceMappingURL=Poi.d.ts.map
@@ -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;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAE5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC;IAsB/B;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAsB3B;AACD,eAAe,GAAG,CAAC"}
@@ -32,3 +32,4 @@ declare class Region {
32
32
  static jsonToObj(json: any): Region;
33
33
  }
34
34
  export default Region;
35
+ //# sourceMappingURL=Region.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../../src/internal/Region.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,cAAM,MAAM;IACV,IAAI,EAAE,MAAM,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"}
@@ -23,3 +23,4 @@ declare class Visit {
23
23
  */
24
24
  static jsonToObj(json: any): Visit;
25
25
  }
26
+ //# sourceMappingURL=Visit.d.ts.map
@@ -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"}
@@ -47,3 +47,4 @@ declare class Zoi {
47
47
  */
48
48
  static jsonToObj(json: any): Zoi;
49
49
  }
50
+ //# sourceMappingURL=Zoi.d.ts.map
@@ -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"}
@@ -1,2 +1,3 @@
1
1
  declare let PluginGeofencing: any;
2
2
  export default PluginGeofencing;
3
+ //# sourceMappingURL=nativeInterface.d.ts.map
@@ -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"}
@@ -16,3 +16,4 @@ export interface GeofenceRegion {
16
16
  radius: number;
17
17
  type: RegionType;
18
18
  }
19
+ //# sourceMappingURL=types.d.ts.map
@@ -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
- "version":"0.4.5-beta.1",
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/src",
12
- "android/build.gradle",
13
+ "android",
13
14
  "ios",
14
15
  "cpp",
15
- "react-native-plugin-geofencing.podspec",
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
- "typescript": "tsc --noEmit",
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": "https://github.com/Woosmap/geofencing-react-native-plugin",
36
- "author": "WGS Indoor <28100769+sameerdhulap@users.noreply.github.com> (https://github.com/sameerdhulap)",
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": "^11.0.0",
47
- "@react-native-community/eslint-config": "^2.0.0",
48
- "@release-it/conventional-changelog": "^2.0.0",
49
- "@types/jest": "^26.0.0",
50
- "@types/react": "^16.9.19",
51
- "@types/react-native": "^0.72.3",
52
- "commitlint": "^11.0.0",
53
- "eslint": "^7.2.0",
54
- "eslint-config-prettier": "^7.0.0",
55
- "eslint-plugin-prettier": "^3.1.3",
56
- "husky": "^6.0.0",
57
- "jest": "^26.0.1",
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": "^18.2.0",
61
- "react-native": "^0.72.3",
62
- "react-native-builder-bob": "^0.18.0",
63
- "release-it": "^14.2.2",
64
- "typescript": "^4.1.3"
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-community",
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/woosmap-geofencing-react-native-plugin.git", :tag => "#{s.version}" }
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