@zulfio/react-native-alarm-kit 1.0.1 → 1.0.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/Alarmkit.podspec CHANGED
@@ -11,6 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.authors = package["author"]
12
12
 
13
13
  s.platforms = { :ios => min_ios_version_supported }
14
+ s.module_name = "RNAlarmKit"
14
15
  s.source = { :git => "https://github.com/raphckrman/react-native-alarmkit.git", :tag => "#{s.version}" }
15
16
 
16
17
 
@@ -28,7 +29,7 @@ Pod::Spec.new do |s|
28
29
  s.dependency 'React-jsi'
29
30
  s.dependency 'React-callinvoker'
30
31
 
31
- load 'nitrogen/generated/ios/AlarmKit+autolinking.rb'
32
+ load 'nitrogen/generated/ios/RNAlarmKit+autolinking.rb'
32
33
  add_nitrogen_files(s)
33
34
 
34
35
  install_modules_dependencies(s)
package/nitro.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "cxxNamespace": ["alarmkit"],
3
3
  "ios": {
4
- "iosModuleName": "AlarmKit"
4
+ "iosModuleName": "RNAlarmKit"
5
5
  },
6
6
  "android": {
7
7
  "androidNamespace": ["alarmkit"],
@@ -1,5 +1,5 @@
1
1
  #
2
- # AlarmKit+autolinking.rb
2
+ # RNAlarmKit+autolinking.rb
3
3
  # This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  # https://github.com/mrousavy/nitro
5
5
  # Copyright © 2026 Marc Rousavy @ Margelo
@@ -14,13 +14,13 @@
14
14
  # # ...
15
15
  #
16
16
  # # Add all files generated by Nitrogen
17
- # load 'nitrogen/generated/ios/AlarmKit+autolinking.rb'
17
+ # load 'nitrogen/generated/ios/RNAlarmKit+autolinking.rb'
18
18
  # add_nitrogen_files(spec)
19
19
  # end
20
20
  # ```
21
21
 
22
22
  def add_nitrogen_files(spec)
23
- Pod::UI.puts "[NitroModules] 🔥 AlarmKit is boosted by nitro!"
23
+ Pod::UI.puts "[NitroModules] 🔥 RNAlarmKit is boosted by nitro!"
24
24
 
25
25
  spec.dependency "NitroModules"
26
26
 
@@ -37,7 +37,7 @@ def add_nitrogen_files(spec)
37
37
  # Generated specs
38
38
  "nitrogen/generated/shared/**/*.{h,hpp}",
39
39
  # Swift to C++ bridging helpers
40
- "nitrogen/generated/ios/AlarmKit-Swift-Cxx-Bridge.hpp"
40
+ "nitrogen/generated/ios/RNAlarmKit-Swift-Cxx-Bridge.hpp"
41
41
  ]
42
42
 
43
43
  current_private_header_files = Array(spec.attributes_hash['private_header_files'])
@@ -1,21 +1,21 @@
1
1
  ///
2
- /// AlarmKit-Swift-Cxx-Bridge.cpp
2
+ /// RNAlarmKit-Swift-Cxx-Bridge.cpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- #include "AlarmKit-Swift-Cxx-Bridge.hpp"
8
+ #include "RNAlarmKit-Swift-Cxx-Bridge.hpp"
9
9
 
10
10
  // Include C++ implementation defined types
11
- #include "AlarmKit-Swift-Cxx-Umbrella.hpp"
12
11
  #include "HybridAlarmKitSpecSwift.hpp"
12
+ #include "RNAlarmKit-Swift-Cxx-Umbrella.hpp"
13
13
 
14
14
  namespace margelo::nitro::alarmkit::bridge::swift {
15
15
 
16
16
  // pragma MARK: std::function<void(bool /* result */)>
17
17
  Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper) {
18
- auto swiftClosure = AlarmKit::Func_void_bool::fromUnsafe(swiftClosureWrapper);
18
+ auto swiftClosure = RNAlarmKit::Func_void_bool::fromUnsafe(swiftClosureWrapper);
19
19
  return [swiftClosure = std::move(swiftClosure)](bool result) mutable -> void {
20
20
  swiftClosure.call(result);
21
21
  };
@@ -23,7 +23,7 @@ namespace margelo::nitro::alarmkit::bridge::swift {
23
23
 
24
24
  // pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
25
25
  Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper) {
26
- auto swiftClosure = AlarmKit::Func_void_std__exception_ptr::fromUnsafe(swiftClosureWrapper);
26
+ auto swiftClosure = RNAlarmKit::Func_void_std__exception_ptr::fromUnsafe(swiftClosureWrapper);
27
27
  return [swiftClosure = std::move(swiftClosure)](const std::exception_ptr& error) mutable -> void {
28
28
  swiftClosure.call(error);
29
29
  };
@@ -31,7 +31,7 @@ namespace margelo::nitro::alarmkit::bridge::swift {
31
31
 
32
32
  // pragma MARK: std::function<void(const std::string& /* result */)>
33
33
  Func_void_std__string create_Func_void_std__string(void* _Nonnull swiftClosureWrapper) {
34
- auto swiftClosure = AlarmKit::Func_void_std__string::fromUnsafe(swiftClosureWrapper);
34
+ auto swiftClosure = RNAlarmKit::Func_void_std__string::fromUnsafe(swiftClosureWrapper);
35
35
  return [swiftClosure = std::move(swiftClosure)](const std::string& result) mutable -> void {
36
36
  swiftClosure.call(result);
37
37
  };
@@ -39,7 +39,7 @@ namespace margelo::nitro::alarmkit::bridge::swift {
39
39
 
40
40
  // pragma MARK: std::function<void(const std::optional<std::string>& /* result */)>
41
41
  Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* _Nonnull swiftClosureWrapper) {
42
- auto swiftClosure = AlarmKit::Func_void_std__optional_std__string_::fromUnsafe(swiftClosureWrapper);
42
+ auto swiftClosure = RNAlarmKit::Func_void_std__optional_std__string_::fromUnsafe(swiftClosureWrapper);
43
43
  return [swiftClosure = std::move(swiftClosure)](const std::optional<std::string>& result) mutable -> void {
44
44
  swiftClosure.call(result);
45
45
  };
@@ -47,7 +47,7 @@ namespace margelo::nitro::alarmkit::bridge::swift {
47
47
 
48
48
  // pragma MARK: std::function<void(const std::vector<std::string>& /* result */)>
49
49
  Func_void_std__vector_std__string_ create_Func_void_std__vector_std__string_(void* _Nonnull swiftClosureWrapper) {
50
- auto swiftClosure = AlarmKit::Func_void_std__vector_std__string_::fromUnsafe(swiftClosureWrapper);
50
+ auto swiftClosure = RNAlarmKit::Func_void_std__vector_std__string_::fromUnsafe(swiftClosureWrapper);
51
51
  return [swiftClosure = std::move(swiftClosure)](const std::vector<std::string>& result) mutable -> void {
52
52
  swiftClosure.call(result);
53
53
  };
@@ -55,7 +55,7 @@ namespace margelo::nitro::alarmkit::bridge::swift {
55
55
 
56
56
  // pragma MARK: std::shared_ptr<margelo::nitro::alarmkit::HybridAlarmKitSpec>
57
57
  std::shared_ptr<margelo::nitro::alarmkit::HybridAlarmKitSpec> create_std__shared_ptr_margelo__nitro__alarmkit__HybridAlarmKitSpec_(void* _Nonnull swiftUnsafePointer) {
58
- AlarmKit::HybridAlarmKitSpec_cxx swiftPart = AlarmKit::HybridAlarmKitSpec_cxx::fromUnsafe(swiftUnsafePointer);
58
+ RNAlarmKit::HybridAlarmKitSpec_cxx swiftPart = RNAlarmKit::HybridAlarmKitSpec_cxx::fromUnsafe(swiftUnsafePointer);
59
59
  return std::make_shared<margelo::nitro::alarmkit::HybridAlarmKitSpecSwift>(swiftPart);
60
60
  }
61
61
  void* _Nonnull get_std__shared_ptr_margelo__nitro__alarmkit__HybridAlarmKitSpec_(std__shared_ptr_margelo__nitro__alarmkit__HybridAlarmKitSpec_ cppType) {
@@ -65,7 +65,7 @@ namespace margelo::nitro::alarmkit::bridge::swift {
65
65
  throw std::runtime_error("Class \"HybridAlarmKitSpec\" is not implemented in Swift!");
66
66
  }
67
67
  #endif
68
- AlarmKit::HybridAlarmKitSpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
68
+ RNAlarmKit::HybridAlarmKitSpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
69
69
  return swiftPart.toUnsafe();
70
70
  }
71
71
 
@@ -1,5 +1,5 @@
1
1
  ///
2
- /// AlarmKit-Swift-Cxx-Bridge.hpp
2
+ /// RNAlarmKit-Swift-Cxx-Bridge.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2026 Marc Rousavy @ Margelo
@@ -19,7 +19,7 @@ namespace margelo::nitro::alarmkit { class HybridAlarmKitSpec; }
19
19
 
20
20
  // Forward declarations of Swift defined types
21
21
  // Forward declaration of `HybridAlarmKitSpec_cxx` to properly resolve imports.
22
- namespace AlarmKit { class HybridAlarmKitSpec_cxx; }
22
+ namespace RNAlarmKit { class HybridAlarmKitSpec_cxx; }
23
23
 
24
24
  // Include C++ defined types
25
25
  #include "AlarmCountdown.hpp"
@@ -1,5 +1,5 @@
1
1
  ///
2
- /// AlarmKit-Swift-Cxx-Umbrella.hpp
2
+ /// RNAlarmKit-Swift-Cxx-Umbrella.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2026 Marc Rousavy @ Margelo
@@ -31,7 +31,7 @@ namespace margelo::nitro::alarmkit { class HybridAlarmKitSpec; }
31
31
  #include <vector>
32
32
 
33
33
  // C++ helpers for Swift
34
- #include "AlarmKit-Swift-Cxx-Bridge.hpp"
34
+ #include "RNAlarmKit-Swift-Cxx-Bridge.hpp"
35
35
 
36
36
  // Common C++ types used in Swift
37
37
  #include <NitroModules/ArrayBufferHolder.hpp>
@@ -41,16 +41,16 @@ namespace margelo::nitro::alarmkit { class HybridAlarmKitSpec; }
41
41
 
42
42
  // Forward declarations of Swift defined types
43
43
  // Forward declaration of `HybridAlarmKitSpec_cxx` to properly resolve imports.
44
- namespace AlarmKit { class HybridAlarmKitSpec_cxx; }
44
+ namespace RNAlarmKit { class HybridAlarmKitSpec_cxx; }
45
45
 
46
46
  // Include Swift defined types
47
- #if __has_include("AlarmKit-Swift.h")
47
+ #if __has_include("RNAlarmKit-Swift.h")
48
48
  // This header is generated by Xcode/Swift on every app build.
49
- // If it cannot be found, make sure the Swift module's name (= podspec name) is actually "AlarmKit".
50
- #include "AlarmKit-Swift.h"
49
+ // If it cannot be found, make sure the Swift module's name (= podspec name) is actually "RNAlarmKit".
50
+ #include "RNAlarmKit-Swift.h"
51
51
  // Same as above, but used when building with frameworks (`use_frameworks`)
52
- #elif __has_include(<AlarmKit/AlarmKit-Swift.h>)
53
- #include <AlarmKit/AlarmKit-Swift.h>
52
+ #elif __has_include(<RNAlarmKit/RNAlarmKit-Swift.h>)
53
+ #include <RNAlarmKit/RNAlarmKit-Swift.h>
54
54
  #else
55
- #error AlarmKit's autogenerated Swift header cannot be found! Make sure the Swift module's name (= podspec name) is actually "AlarmKit", and try building the app first.
55
+ #error RNAlarmKit's autogenerated Swift header cannot be found! Make sure the Swift module's name (= podspec name) is actually "RNAlarmKit", and try building the app first.
56
56
  #endif
@@ -1,5 +1,5 @@
1
1
  ///
2
- /// AlarmKitAutolinking.mm
2
+ /// RNAlarmKitAutolinking.mm
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2026 Marc Rousavy @ Margelo
@@ -7,15 +7,15 @@
7
7
 
8
8
  #import <Foundation/Foundation.h>
9
9
  #import <NitroModules/HybridObjectRegistry.hpp>
10
- #import "AlarmKit-Swift-Cxx-Umbrella.hpp"
10
+ #import "RNAlarmKit-Swift-Cxx-Umbrella.hpp"
11
11
  #import <type_traits>
12
12
 
13
13
  #include "HybridAlarmKitSpecSwift.hpp"
14
14
 
15
- @interface AlarmKitAutolinking : NSObject
15
+ @interface RNAlarmKitAutolinking : NSObject
16
16
  @end
17
17
 
18
- @implementation AlarmKitAutolinking
18
+ @implementation RNAlarmKitAutolinking
19
19
 
20
20
  + (void) load {
21
21
  using namespace margelo::nitro;
@@ -24,7 +24,7 @@
24
24
  HybridObjectRegistry::registerHybridObjectConstructor(
25
25
  "AlarmKit",
26
26
  []() -> std::shared_ptr<HybridObject> {
27
- std::shared_ptr<margelo::nitro::alarmkit::HybridAlarmKitSpec> hybridObject = AlarmKit::AlarmKitAutolinking::createAlarmKit();
27
+ std::shared_ptr<margelo::nitro::alarmkit::HybridAlarmKitSpec> hybridObject = RNAlarmKit::RNAlarmKitAutolinking::createAlarmKit();
28
28
  return hybridObject;
29
29
  }
30
30
  );
@@ -1,11 +1,11 @@
1
1
  ///
2
- /// AlarmKitAutolinking.swift
2
+ /// RNAlarmKitAutolinking.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- public final class AlarmKitAutolinking {
8
+ public final class RNAlarmKitAutolinking {
9
9
  public typealias bridge = margelo.nitro.alarmkit.bridge.swift
10
10
 
11
11
  /**
@@ -10,7 +10,7 @@
10
10
  #include "HybridAlarmKitSpec.hpp"
11
11
 
12
12
  // Forward declaration of `HybridAlarmKitSpec_cxx` to properly resolve imports.
13
- namespace AlarmKit { class HybridAlarmKitSpec_cxx; }
13
+ namespace RNAlarmKit { class HybridAlarmKitSpec_cxx; }
14
14
 
15
15
  // Forward declaration of `CustomizableAlarmButton` to properly resolve imports.
16
16
  namespace margelo::nitro::alarmkit { struct CustomizableAlarmButton; }
@@ -27,7 +27,7 @@ namespace margelo::nitro::alarmkit { enum class AlarmWeekday; }
27
27
  #include <vector>
28
28
  #include "AlarmWeekday.hpp"
29
29
 
30
- #include "AlarmKit-Swift-Cxx-Umbrella.hpp"
30
+ #include "RNAlarmKit-Swift-Cxx-Umbrella.hpp"
31
31
 
32
32
  namespace margelo::nitro::alarmkit {
33
33
 
@@ -44,13 +44,13 @@ namespace margelo::nitro::alarmkit {
44
44
  class HybridAlarmKitSpecSwift: public virtual HybridAlarmKitSpec {
45
45
  public:
46
46
  // Constructor from a Swift instance
47
- explicit HybridAlarmKitSpecSwift(const AlarmKit::HybridAlarmKitSpec_cxx& swiftPart):
47
+ explicit HybridAlarmKitSpecSwift(const RNAlarmKit::HybridAlarmKitSpec_cxx& swiftPart):
48
48
  HybridObject(HybridAlarmKitSpec::TAG),
49
49
  _swiftPart(swiftPart) { }
50
50
 
51
51
  public:
52
52
  // Get the Swift part
53
- inline AlarmKit::HybridAlarmKitSpec_cxx& getSwiftPart() noexcept {
53
+ inline RNAlarmKit::HybridAlarmKitSpec_cxx& getSwiftPart() noexcept {
54
54
  return _swiftPart;
55
55
  }
56
56
 
@@ -124,7 +124,7 @@ namespace margelo::nitro::alarmkit {
124
124
  }
125
125
 
126
126
  private:
127
- AlarmKit::HybridAlarmKitSpec_cxx _swiftPart;
127
+ RNAlarmKit::HybridAlarmKitSpec_cxx _swiftPart;
128
128
  };
129
129
 
130
130
  } // namespace margelo::nitro::alarmkit
@@ -20,7 +20,7 @@ import NitroModules
20
20
  public class HybridAlarmKitSpec_cxx {
21
21
  /**
22
22
  * The Swift <> C++ bridge's namespace (`margelo::nitro::alarmkit::bridge::swift`)
23
- * from `AlarmKit-Swift-Cxx-Bridge.hpp`.
23
+ * from `RNAlarmKit-Swift-Cxx-Bridge.hpp`.
24
24
  * This contains specialized C++ templates, and C++ helper functions that can be accessed from Swift.
25
25
  */
26
26
  public typealias bridge = margelo.nitro.alarmkit.bridge.swift
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zulfio/react-native-alarm-kit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "This library provides a simple and modern interface for working with alarms in your React Native app using Apple’s latest AlarmKit framework.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",