Skip to content

Commit

Permalink
Merge pull request #16 from Purchasely/chore/1.7.2
Browse files Browse the repository at this point in the history
Version 1.7.2
  • Loading branch information
kherembourg authored Aug 4, 2023
2 parents 0b312c3 + 09ab58b commit aad0b2a
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 21 deletions.
8 changes: 8 additions & 0 deletions purchasely/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.7.2
### Enhancements on Android
- Update Exoplayer dependency to 2.19.0 in player module
- Update player module to compile with SDK 33
- Use countdown tag for any labels in your paywalls
### Enhancements on iOS
- Improve eligibility check for introductory and promo offers
- Fixes a bug affecting the price display depending on time period
## 1.7.1
### Fixes on Android
- Improve paywall engine for default selected plan on display
Expand Down
2 changes: 1 addition & 1 deletion purchasely/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ dependencies {

api 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0'

api 'io.purchasely:core:3.7.3'
api 'io.purchasely:core:3.7.4'
}
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class PurchaselyFlutterPlugin: FlutterPlugin, MethodCallHandler, ActivityAware,
.userId(userId)
.build()

Purchasely.sdkBridgeVersion = "1.7.1"
Purchasely.sdkBridgeVersion = "1.7.2"
Purchasely.appTechnology = PLYAppTechnology.FLUTTER

Purchasely.start { isConfigured, error ->
Expand Down
7 changes: 4 additions & 3 deletions purchasely/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 31
compileSdkVersion 33

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -45,7 +45,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.purchasely.demo"
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand All @@ -66,5 +66,6 @@ flutter {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation 'io.purchasely:google-play:3.7.3'
implementation 'io.purchasely:google-play:3.7.4'
implementation 'io.purchasely:player:3.7.4'
}
8 changes: 4 additions & 4 deletions purchasely/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PODS:
- Flutter (1.0.0)
- Purchasely (3.7.1)
- Purchasely (3.7.3)
- purchasely_flutter (1.2.4):
- Flutter
- Purchasely (= 3.7.1)
- Purchasely (= 3.7.3)

DEPENDENCIES:
- Flutter (from `Flutter`)
Expand All @@ -21,8 +21,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
Purchasely: 2233d0468c75218e0d73f9ddece64b27faadde76
purchasely_flutter: 1d0d0b47bd487f1adabba32c80cbdf11af26b321
Purchasely: b03b93f64316e27c99d4fb298c9cf6b39d48cd9c
purchasely_flutter: f03ce05e9b455958a0f12d1f9dc331675ef4fed6

PODFILE CHECKSUM: 768dee5db4490be8b1b98bea5a8ea5b6d51cea10

Expand Down
1 change: 1 addition & 0 deletions purchasely/example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
Expand Down
7 changes: 5 additions & 2 deletions purchasely/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class _MyAppState extends State<MyApp> {

//Purchasely.setLogLevel(LogLevel.debug);

Purchasely.setAttribute(PLYAttribute.adjust_id, "value");

Purchasely.setLanguage("en");

String anonymousId = await Purchasely.anonymousUserId;
Expand Down Expand Up @@ -175,7 +177,8 @@ class _MyAppState extends State<MyApp> {

Future<void> fetchPresentation() async {
try {
var presentation = await Purchasely.fetchPresentation("app_launch_demo");
var presentation = await Purchasely.fetchPresentation(null,
presentationId: "FitnessChallenge");

if (presentation == null) {
print("No presentation found");
Expand All @@ -195,7 +198,7 @@ class _MyAppState extends State<MyApp> {
//Display Purchasely paywall

var presentResult = await Purchasely.presentPresentation(presentation,
isFullscreen: false);
isFullscreen: true);

switch (presentResult.result) {
case PLYPurchaseResult.cancelled:
Expand Down
2 changes: 1 addition & 1 deletion purchasely/ios/Classes/SwiftPurchaselyFlutterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public class SwiftPurchaselyFlutterPlugin: NSObject, FlutterPlugin {
return
}

Purchasely.setSdkBridgeVersion("1.7.1")
Purchasely.setSdkBridgeVersion("1.7.2")
Purchasely.setAppTechnology(PLYAppTechnology.flutter)

let logLevel = PLYLogger.LogLevel(rawValue: (arguments["logLevel"] as? Int) ?? PLYLogger.LogLevel.debug.rawValue) ?? PLYLogger.LogLevel.debug
Expand Down
2 changes: 1 addition & 1 deletion purchasely/ios/purchasely_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Flutter Plugin for Purchasely SDK
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
s.swift_version = '5.0'

s.dependency 'Purchasely', '3.7.2'
s.dependency 'Purchasely', '3.7.3'
s.static_framework = true

end
2 changes: 1 addition & 1 deletion purchasely/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: purchasely_flutter
description: Purchasely is a solution to ease the integration and boost your In-App Purchase & Subscriptions on the App Store, Google Play Store and Huawei App Gallery.
version: 1.7.1
version: 1.7.2
homepage: https://www.purchasely.com/

environment:
Expand Down
8 changes: 8 additions & 0 deletions purchasely_android_player/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.7.2
### Enhancements on Android
- Update Exoplayer dependency to 2.19.0 in player module
- Update player module to compile with SDK 33
- Use countdown tag for any labels in your paywalls
### Enhancements on iOS
- Improve eligibility check for introductory and promo offers
- Fixes a bug affecting the price display depending on time period
## 1.7.1
### Fixes on Android
- Improve paywall engine for default selected plan on display
Expand Down
4 changes: 2 additions & 2 deletions purchasely_android_player/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 31
compileSdkVersion 33

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -48,5 +48,5 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

api 'io.purchasely:player:3.7.3'
api 'io.purchasely:player:3.7.4'
}
2 changes: 1 addition & 1 deletion purchasely_android_player/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.7.1"
version: "1.7.2"
sky_engine:
dependency: transitive
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion purchasely_android_player/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: purchasely_android_player
description: Purchasely Player dependency for Android
version: 1.7.1
version: 1.7.2
homepage: https://www.purchasely.com/

environment:
Expand Down
8 changes: 8 additions & 0 deletions purchasely_google/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.7.2
### Enhancements on Android
- Update Exoplayer dependency to 2.19.0 in player module
- Update player module to compile with SDK 33
- Use countdown tag for any labels in your paywalls
### Enhancements on iOS
- Improve eligibility check for introductory and promo offers
- Fixes a bug affecting the price display depending on time period
## 1.7.1
### Fixes on Android
- Improve paywall engine for default selected plan on display
Expand Down
2 changes: 1 addition & 1 deletion purchasely_google/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

api 'io.purchasely:google-play:3.7.3'
api 'io.purchasely:google-play:3.7.4'
}
2 changes: 1 addition & 1 deletion purchasely_google/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.7.1"
version: "1.7.2"
sky_engine:
dependency: transitive
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion purchasely_google/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: purchasely_google
description: Purchasely Google Play Billing dependency for Android
version: 1.7.1
version: 1.7.2
homepage: https://www.purchasely.com/

environment:
Expand Down

0 comments on commit aad0b2a

Please sign in to comment.