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

Commit

Permalink
Release v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarbo committed Sep 21, 2022
1 parent d69bc7d commit ccc4dda
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Glassfy.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Glassfy"
s.version = "1.3.2"
s.version = "1.3.3"
s.summary = "Subscription and in-app-purchase service."
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.source = { :git => "https://github.com/glassfy/ios-sdk.git", :tag => s.version.to_s }
Expand Down
4 changes: 2 additions & 2 deletions Glassfy.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.3.2;
MARKETING_VERSION = 1.3.3;
PRODUCT_BUNDLE_IDENTIFIER = net.glassfy.sdk;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -793,7 +793,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.3.2;
MARKETING_VERSION = 1.3.3;
PRODUCT_BUNDLE_IDENTIFIER = net.glassfy.sdk;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
12 changes: 12 additions & 0 deletions Source/GYSkuBase.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
@interface GYSkuBase()
@property(nonatomic, strong) NSString *skuId;
@property(nonatomic, strong) NSString *productId;
@property(nonatomic, assign) BOOL isInIntroOffer;
@property(nonatomic, assign) BOOL isTrial;
@property(nonatomic, assign) GYStore store;
@end

Expand All @@ -30,6 +32,16 @@ - (instancetype)initWithObject:(NSDictionary *)obj error:(NSError ** _Nullable)e
self.productId = productId;
}

NSNumber *isInIntroOffer = obj[@"isinintrooffer"];
if ([isInIntroOffer isKindOfClass:NSNumber.class]) {
self.isInIntroOffer = isInIntroOffer.boolValue;
}

NSNumber *isTrial = obj[@"istrial"];
if ([isTrial isKindOfClass:NSNumber.class]) {
self.isTrial = isTrial.boolValue;
}

NSString *store = obj[@"store"];
if ([store isKindOfClass:NSString.class]) {
self.store = store.integerValue;
Expand Down
2 changes: 1 addition & 1 deletion Source/Glassfy.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ + (Glassfy *)shared

+ (NSString *)sdkVersion
{
return @"1.3.2";
return @"1.3.3";
}

+ (void)initializeWithAPIKey:(NSString *)apiKey
Expand Down
4 changes: 4 additions & 0 deletions Source/Public/GYSkuBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ NS_SWIFT_NAME(Glassfy.SkuBase)
@interface GYSkuBase : NSObject
@property(nonatomic, readonly) NSString *skuId;
@property(nonatomic, readonly) NSString *productId;

@property(nonatomic, readonly) BOOL isInIntroOffer;
@property(nonatomic, readonly) BOOL isTrial;

@property(nonatomic, readonly) GYStore store;

/// Deprecations
Expand Down

0 comments on commit ccc4dda

Please sign in to comment.