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

Commit

Permalink
Release v1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarbo committed Jun 4, 2024
1 parent f7316a0 commit 021aec9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 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.4.1"
s.version = "1.4.2"
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 @@ -873,7 +873,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.2;
PRODUCT_BUNDLE_IDENTIFIER = net.glassfy.sdk;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -901,7 +901,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.2;
PRODUCT_BUNDLE_IDENTIFIER = net.glassfy.sdk;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Our SDK can be easly integrated through Cocoapods or Swift Package Manager
#### Integrate using Cocoapods
Add the pod to your Podfile:

```pod 'Glassfy', '~> 1.4.1'```
```pod 'Glassfy', '~> 1.4.2'```

Then, run the following command:

Expand Down
5 changes: 5 additions & 0 deletions Source/GYPurchaseHistory.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ @interface GYPurchaseHistory()
@property(nonatomic, readwrite, strong, nullable) NSString *currencyCode;
@property(nonatomic, readwrite, strong, nullable) NSString *countryCode;

@property(nonatomic, readwrite, assign) BOOL isInTrialPeriod;
@property(nonatomic, readwrite, assign) BOOL isInIntroOfferPeriod;
@property(nonatomic, readwrite, strong, nullable) NSString *promotionalOfferId;
@property(nonatomic, readwrite, strong, nullable) NSString *offerCodeRefName;
Expand Down Expand Up @@ -80,6 +81,10 @@ - (instancetype)initWithObject:(NSDictionary *)purchaseJSON error:(NSError ** _N
self.countryCode = country_code;
}

NSNumber *is_trial = purchaseJSON[@"is_trial"];
if ([is_trial isKindOfClass:NSNumber.class]) {
self.isInTrialPeriod = is_trial.boolValue;
}
NSNumber *is_in_intro_offer_period = purchaseJSON[@"is_in_intro_offer_period"];
if ([is_in_intro_offer_period isKindOfClass:NSNumber.class]) {
self.isInIntroOfferPeriod = is_in_intro_offer_period.boolValue;
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.4.1";
return @"1.4.2";
}

+ (void)initializeWithAPIKey:(NSString *)apiKey
Expand Down
1 change: 1 addition & 0 deletions Source/Public/GYPurchaseHistory.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ NS_SWIFT_NAME(Glassfy.PurchaseHistory)
@property(nonatomic, readonly, strong, nullable) NSString *currencyCode;
@property(nonatomic, readonly, strong, nullable) NSString *countryCode;

@property(nonatomic, readonly, assign) BOOL isInTrialPeriod;
@property(nonatomic, readonly, assign) BOOL isInIntroOfferPeriod;
@property(nonatomic, readonly, strong, nullable) NSString *promotionalOfferId;
@property(nonatomic, readonly, strong, nullable) NSString *offerCodeRefName;
Expand Down

0 comments on commit 021aec9

Please sign in to comment.