Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
update storeInfo signature
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarbo committed Dec 7, 2023
1 parent 4a95023 commit 1d73acd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
13 changes: 3 additions & 10 deletions core/ios/GlassfyModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@ @implementation GlassfyModule
withRejecter:reject]];
}

RCT_REMAP_METHOD(storeInfo, storeInfoWithResolver
: (RCTPromiseResolveBlock)resolve withRejecter
: (RCTPromiseRejectBlock)reject) {
[GlassfyGlue storeInfo:
[self responseFromGlassfyGluewithResolver:resolve
withRejecter:reject]];
}

RCT_REMAP_METHOD(setDeviceToken, setDeviceToken
: (NSString *)token withResolver
: (RCTPromiseResolveBlock)resolve withRejecter
Expand Down Expand Up @@ -208,8 +200,9 @@ @implementation GlassfyModule
: (RCTPromiseResolveBlock)resolve withRejecter
: (RCTPromiseRejectBlock)reject) {

[GlassfyGlue storeInfo:[self responseFromGlassfyGluewithResolver:resolve
withRejecter:reject]];
[GlassfyGlue storeInfoWithCompletion:
[self responseFromGlassfyGluewithResolver:resolve
withRejecter:reject]];
}

RCT_EXPORT_METHOD(subscribeOnPurchaseDelegate) {
Expand Down
4 changes: 0 additions & 4 deletions core/ios/GlassfyModule.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

/* Begin PBXFileReference section */
134814201AA4EA6300B7C361 /* libGlassfyModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libGlassfyModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
647B92A02A13C58500F40E33 /* GlassfyPaywall.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GlassfyPaywall.h; sourceTree = "<group>"; };
647B92A12A13C58500F40E33 /* GlassfyPaywall.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GlassfyPaywall.m; sourceTree = "<group>"; };
B3E7B5881CC2AC0600A0062D /* GlassfyModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GlassfyModule.h; sourceTree = "<group>"; };
B3E7B5891CC2AC0600A0062D /* GlassfyModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GlassfyModule.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -50,8 +48,6 @@
children = (
B3E7B5881CC2AC0600A0062D /* GlassfyModule.h */,
B3E7B5891CC2AC0600A0062D /* GlassfyModule.m */,
647B92A02A13C58500F40E33 /* GlassfyPaywall.h */,
647B92A12A13C58500F40E33 /* GlassfyPaywall.m */,
134814211AA4EA7D00B7C361 /* Products */,
);
sourceTree = "<group>";
Expand Down
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-glassfy-module",
"version": "1.6.1",
"version": "1.6.2",
"description": "glassfy module",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
2 changes: 1 addition & 1 deletion core/src/glassfy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Glassfy {
apiKey: string,
watcherMode: boolean
): Promise<void> {
const version = '1.6.1';
const version = '1.6.2';
return GlassfyModule.initialize(apiKey, watcherMode, version);
}

Expand Down

0 comments on commit 1d73acd

Please sign in to comment.