@ammarahmed/notifee-react-native 7.4.4 → 7.4.6

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/dist/index.js CHANGED
@@ -21,17 +21,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  const NotifeeApiModule_1 = __importDefault(require("./NotifeeApiModule"));
24
- const version_1 = require("./version");
25
24
  const utils_1 = require("./utils");
25
+ const SDK_VERSION = '7.4.5';
26
26
  const apiModule = new NotifeeApiModule_1.default({
27
- version: version_1.version,
27
+ version: SDK_VERSION,
28
28
  nativeModuleName: 'NotifeeApiModule',
29
29
  nativeEvents: utils_1.isIOS
30
30
  ? [utils_1.kReactNativeNotifeeNotificationEvent, utils_1.kReactNativeNotifeeNotificationBackgroundEvent]
31
31
  : [utils_1.kReactNativeNotifeeNotificationEvent],
32
32
  });
33
33
  const statics = {
34
- SDK_VERSION: version_1.version,
34
+ SDK_VERSION,
35
35
  };
36
36
  const defaultExports = Object.assign(apiModule, statics);
37
37
  exports.default = defaultExports;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;AAEH,0EAAkD;AAElD,uCAAmD;AACnD,mCAIiB;AAEjB,MAAM,SAAS,GAAG,IAAI,0BAAgB,CAAC;IACrC,OAAO,EAAE,iBAAW;IACpB,gBAAgB,EAAE,kBAAkB;IACpC,YAAY,EAAE,aAAK;QACjB,CAAC,CAAC,CAAC,4CAAoC,EAAE,sDAA8C,CAAC;QACxF,CAAC,CAAC,CAAC,4CAAoC,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,OAAO,GAAkB;IAC7B,WAAW,EAAX,iBAAW;CACZ,CAAC;AAEF,MAAM,cAAc,GAAsB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC5E,kBAAe,cAAc,CAAC;AAE9B,kDAAgC;AAChC,uDAAqC;AACrC,kDAAgC;AAChC,0DAAwC;AACxC,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;AAEH,0EAAkD;AAElD,mCAIiB;AACjB,MAAM,WAAW,GAAG,OAAO,CAAC;AAC5B,MAAM,SAAS,GAAG,IAAI,0BAAgB,CAAC;IACrC,OAAO,EAAE,WAAW;IACpB,gBAAgB,EAAE,kBAAkB;IACpC,YAAY,EAAE,aAAK;QACjB,CAAC,CAAC,CAAC,4CAAoC,EAAE,sDAA8C,CAAC;QACxF,CAAC,CAAC,CAAC,4CAAoC,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,OAAO,GAAkB;IAC7B,WAAW;CACZ,CAAC;AAEF,MAAM,cAAc,GAAsB,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC5E,kBAAe,cAAc,CAAC;AAE9B,kDAAgC;AAChC,uDAAqC;AACrC,kDAAgC;AAChC,0DAAwC;AACxC,8DAA4C"}
@@ -56,7 +56,8 @@ export declare enum RepeatFrequency {
56
56
  HOURLY = 0,
57
57
  DAILY = 1,
58
58
  WEEKLY = 2,
59
- MONTHLY = 3
59
+ MONTHLY = 3,
60
+ YEARLY = 3
60
61
  }
61
62
  /**
62
63
  * Interface for building a trigger that repeats at a specified interval.
@@ -13,6 +13,7 @@ var RepeatFrequency;
13
13
  RepeatFrequency[RepeatFrequency["DAILY"] = 1] = "DAILY";
14
14
  RepeatFrequency[RepeatFrequency["WEEKLY"] = 2] = "WEEKLY";
15
15
  RepeatFrequency[RepeatFrequency["MONTHLY"] = 3] = "MONTHLY";
16
+ RepeatFrequency[RepeatFrequency["YEARLY"] = 3] = "YEARLY";
16
17
  })(RepeatFrequency = exports.RepeatFrequency || (exports.RepeatFrequency = {}));
17
18
  /**
18
19
  * An interface representing the different units of time which can be used with `IntervalTrigger.timeUnit`.
@@ -1 +1 @@
1
- {"version":3,"file":"Trigger.js","sourceRoot":"","sources":["../../src/types/Trigger.ts"],"names":[],"mappings":";;;AAoDA;;;;GAIG;AACH,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,sDAAS,CAAA;IACT,yDAAU,CAAA;IACV,uDAAS,CAAA;IACT,yDAAU,CAAA;IACV,2DAAW,CAAA;AACb,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B;AAgCD;;;;GAIG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,yBAAa,CAAA;AACf,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB;AAED;;;;GAIG;AACH,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,uDAAa,CAAA;IACb,qDAAY,CAAA;AACd,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB"}
1
+ {"version":3,"file":"Trigger.js","sourceRoot":"","sources":["../../src/types/Trigger.ts"],"names":[],"mappings":";;;AAoDA;;;;GAIG;AACH,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,sDAAS,CAAA;IACT,yDAAU,CAAA;IACV,uDAAS,CAAA;IACT,yDAAU,CAAA;IACV,2DAAW,CAAA;IACX,yDAAU,CAAA;AACZ,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B;AAgCD;;;;GAIG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,yBAAa,CAAA;AACf,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB;AAED;;;;GAIG;AACH,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,uDAAa,CAAA;IACb,qDAAY,CAAA;AACd,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB"}
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "7.4.1";
1
+ export declare const version = "7.4.6";
@@ -43,6 +43,7 @@ typedef NS_ENUM(NSInteger, NotifeeCoreRepeatFrequency) {
43
43
  NotifeeCoreRepeatFrequencyDaily = 1,
44
44
  NotifeeCoreRepeatFrequencyWeekly = 2,
45
45
  NotifeeCoreRepeatFrequencyMonthly = 3
46
+ NotifeeCoreRepeatFrequencyYearly = 4
46
47
  };
47
48
 
48
49
  @interface NotifeeCoreUtil : NSObject
@@ -341,6 +341,9 @@
341
341
  // match by day, hour, minute, and second
342
342
  calendarUnit =
343
343
  NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond;
344
+ } else if (repeatFrequency == NotifeeCoreRepeatFrequencyYearly) {
345
+ // match by month, day, hour, minute, and second
346
+ calendarUnit = NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond;
344
347
  } else {
345
348
  NSLog(@"NotifeeCore: Failed to parse TimestampTrigger with unknown "
346
349
  @"repeatFrequency: %ld",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ammarahmed/notifee-react-native",
3
- "version": "7.4.4",
3
+ "version": "7.4.6",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "Notifee - a feature rich notifications library for React Native.",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -4,13 +4,12 @@
4
4
 
5
5
  import NotifeeApiModule from './NotifeeApiModule';
6
6
  import { ModuleStatics, ModuleWithStatics } from './types/Module';
7
- import { version as SDK_VERSION } from './version';
8
7
  import {
9
8
  isIOS,
10
9
  kReactNativeNotifeeNotificationBackgroundEvent,
11
10
  kReactNativeNotifeeNotificationEvent,
12
11
  } from './utils';
13
-
12
+ const SDK_VERSION = '7.4.5';
14
13
  const apiModule = new NotifeeApiModule({
15
14
  version: SDK_VERSION,
16
15
  nativeModuleName: 'NotifeeApiModule',
@@ -61,6 +61,7 @@ export enum RepeatFrequency {
61
61
  DAILY = 1,
62
62
  WEEKLY = 2,
63
63
  MONTHLY = 3,
64
+ YEARLY = 3,
64
65
  }
65
66
 
66
67
  /**
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '7.4.1';
2
+ export const version = '7.4.6';