-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 8.2.0
- Loading branch information
Showing
18 changed files
with
254 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<dependencies> | ||
<androidPackages> | ||
<androidPackage spec="io.qonversion.sandwich:sandwich:5.1.7" /> | ||
<androidPackage spec="io.qonversion.sandwich:sandwich:5.2.0" /> | ||
<androidPackage spec="com.fasterxml.jackson.core:jackson-databind:2.11.1" /> | ||
<androidPackage spec="org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.61" /> | ||
</androidPackages> | ||
<iosPods> | ||
<iosPod name="QonversionSandwich" version="5.1.7" /> | ||
<iosPod name="QonversionSandwich" version="5.2.0" /> | ||
</iosPods> | ||
</dependencies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace QonversionUnity | ||
{ | ||
public class PromotionalOffer | ||
{ | ||
public readonly SKProductDiscount ProductDiscount; | ||
public readonly SKPaymentDiscount PaymentDiscount; | ||
|
||
public PromotionalOffer(Dictionary<string, object> dict) | ||
{ | ||
if (dict.TryGetValue("productDiscount", out object value) && value is Dictionary<string, object> productDiscount) | ||
{ | ||
ProductDiscount = new SKProductDiscount(productDiscount); | ||
} | ||
if (dict.TryGetValue("paymentDiscount", out value) && value is Dictionary<string, object> paymentDiscount) | ||
{ | ||
PaymentDiscount = new SKPaymentDiscount(paymentDiscount); | ||
} | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return $"{nameof(ProductDiscount)}: {ProductDiscount}, " + | ||
$"{nameof(PaymentDiscount)}: {PaymentDiscount}"; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace QonversionUnity | ||
{ | ||
public class SKPaymentDiscount { | ||
public readonly string Identifier; | ||
public readonly string KeyIdentifier; | ||
public readonly string Nonce; | ||
public readonly string Signature; | ||
public readonly long Timestamp; | ||
|
||
public SKPaymentDiscount(Dictionary<string, object> dict) { | ||
if (dict.TryGetValue("identifier", out object value)) Identifier = value as string; | ||
if (dict.TryGetValue("keyIdentifier", out value)) KeyIdentifier = value as string; | ||
if (dict.TryGetValue("nonce", out value)) Nonce = value as string; | ||
if (dict.TryGetValue("signature", out value)) Signature = value as string; | ||
if (dict.TryGetValue("timestamp", out object timestamp)) Timestamp = (long)timestamp; | ||
} | ||
|
||
public override string ToString() { | ||
return $"{nameof(Identifier)}: {Identifier}, " + | ||
$"{nameof(KeyIdentifier)}: {KeyIdentifier}, " + | ||
$"{nameof(Nonce)}: {Nonce}, " + | ||
$"{nameof(Signature)}: {Signature}, " + | ||
$"{nameof(Timestamp)}: {Timestamp}"; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.