From 8c9368335e36b08acedcafdef7e4f258d20bedeb Mon Sep 17 00:00:00 2001 From: Chouaib Mounaime Date: Mon, 21 Oct 2024 16:36:15 +0200 Subject: [PATCH] Version 4.5.1 (#45) * Bump Android and iOS SDKs * Update bridge version for iOS --- VERSIONS.md | 3 +- purchasely/CHANGELOG.md | 2 + purchasely/android/build.gradle | 5 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../android/src/main/AndroidManifest.xml | 3 +- .../PurchaselyFlutterPlugin.kt | 2 +- purchasely/example/android/app/build.gradle | 6 +- .../android/app/src/main/AndroidManifest.xml | 3 +- purchasely/example/android/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../SwiftPurchaselyFlutterPlugin.swift | 2 +- purchasely/ios/purchasely_flutter.podspec | 2 +- purchasely/pubspec.yaml | 2 +- purchasely_android_player/CHANGELOG.md | 2 + .../android/build.gradle | 2 +- purchasely_android_player/example/.gitignore | 47 ---- purchasely_android_player/example/README.md | 16 -- .../example/analysis_options.yaml | 29 --- .../example/android/.gitignore | 13 - .../example/android/app/build.gradle | 71 ------ .../android/app/src/debug/AndroidManifest.xml | 8 - .../android/app/src/main/AndroidManifest.xml | 34 --- .../MainActivity.kt | 6 - .../res/drawable-v21/launch_background.xml | 12 - .../main/res/drawable/launch_background.xml | 12 - .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 544 -> 0 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 442 -> 0 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 721 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 1031 -> 0 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 1443 -> 0 bytes .../app/src/main/res/values-night/styles.xml | 18 -- .../app/src/main/res/values/styles.xml | 18 -- .../app/src/profile/AndroidManifest.xml | 8 - .../example/android/build.gradle | 31 --- .../example/android/gradle.properties | 3 - .../gradle/wrapper/gradle-wrapper.properties | 6 - .../example/android/settings.gradle | 11 - .../example/lib/main.dart | 63 ----- .../example/pubspec.lock | 228 ------------------ .../example/pubspec.yaml | 84 ------- .../example/test/widget_test.dart | 27 --- purchasely_android_player/pubspec.yaml | 2 +- ...ly_android_player_method_channel_test.dart | 24 -- .../test/purchasely_android_player_test.dart | 29 --- purchasely_google/CHANGELOG.md | 2 + purchasely_google/android/build.gradle | 2 +- purchasely_google/example/.gitignore | 47 ---- purchasely_google/example/README.md | 16 -- .../example/analysis_options.yaml | 29 --- purchasely_google/example/android/.gitignore | 13 - .../example/android/app/build.gradle | 71 ------ .../android/app/src/debug/AndroidManifest.xml | 8 - .../android/app/src/main/AndroidManifest.xml | 34 --- .../purchasely_google_example/MainActivity.kt | 6 - .../res/drawable-v21/launch_background.xml | 12 - .../main/res/drawable/launch_background.xml | 12 - .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 544 -> 0 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 442 -> 0 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 721 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 1031 -> 0 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 1443 -> 0 bytes .../app/src/main/res/values-night/styles.xml | 18 -- .../app/src/main/res/values/styles.xml | 18 -- .../app/src/profile/AndroidManifest.xml | 8 - .../example/android/build.gradle | 31 --- .../example/android/gradle.properties | 3 - .../gradle/wrapper/gradle-wrapper.properties | 6 - .../example/android/settings.gradle | 11 - purchasely_google/example/lib/main.dart | 63 ----- purchasely_google/example/pubspec.lock | 228 ------------------ purchasely_google/example/pubspec.yaml | 84 ------- .../example/test/widget_test.dart | 27 --- purchasely_google/pubspec.yaml | 4 +- ...purchasely_google_method_channel_test.dart | 24 -- .../test/purchasely_google_test.dart | 29 --- 75 files changed, 29 insertions(+), 1617 deletions(-) delete mode 100644 purchasely_android_player/example/.gitignore delete mode 100644 purchasely_android_player/example/README.md delete mode 100644 purchasely_android_player/example/analysis_options.yaml delete mode 100644 purchasely_android_player/example/android/.gitignore delete mode 100644 purchasely_android_player/example/android/app/build.gradle delete mode 100644 purchasely_android_player/example/android/app/src/debug/AndroidManifest.xml delete mode 100644 purchasely_android_player/example/android/app/src/main/AndroidManifest.xml delete mode 100644 purchasely_android_player/example/android/app/src/main/kotlin/io/purchasely/sample/player/purchasely_android_player_example/MainActivity.kt delete mode 100644 purchasely_android_player/example/android/app/src/main/res/drawable-v21/launch_background.xml delete mode 100644 purchasely_android_player/example/android/app/src/main/res/drawable/launch_background.xml delete mode 100644 purchasely_android_player/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 purchasely_android_player/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 purchasely_android_player/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 purchasely_android_player/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 purchasely_android_player/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png delete mode 100644 purchasely_android_player/example/android/app/src/main/res/values-night/styles.xml delete mode 100644 purchasely_android_player/example/android/app/src/main/res/values/styles.xml delete mode 100644 purchasely_android_player/example/android/app/src/profile/AndroidManifest.xml delete mode 100644 purchasely_android_player/example/android/build.gradle delete mode 100644 purchasely_android_player/example/android/gradle.properties delete mode 100644 purchasely_android_player/example/android/gradle/wrapper/gradle-wrapper.properties delete mode 100644 purchasely_android_player/example/android/settings.gradle delete mode 100644 purchasely_android_player/example/lib/main.dart delete mode 100644 purchasely_android_player/example/pubspec.lock delete mode 100644 purchasely_android_player/example/pubspec.yaml delete mode 100644 purchasely_android_player/example/test/widget_test.dart delete mode 100644 purchasely_android_player/test/purchasely_android_player_method_channel_test.dart delete mode 100644 purchasely_android_player/test/purchasely_android_player_test.dart delete mode 100644 purchasely_google/example/.gitignore delete mode 100644 purchasely_google/example/README.md delete mode 100644 purchasely_google/example/analysis_options.yaml delete mode 100644 purchasely_google/example/android/.gitignore delete mode 100644 purchasely_google/example/android/app/build.gradle delete mode 100644 purchasely_google/example/android/app/src/debug/AndroidManifest.xml delete mode 100644 purchasely_google/example/android/app/src/main/AndroidManifest.xml delete mode 100644 purchasely_google/example/android/app/src/main/kotlin/io/purchasely/sample/google/purchasely_google_example/MainActivity.kt delete mode 100644 purchasely_google/example/android/app/src/main/res/drawable-v21/launch_background.xml delete mode 100644 purchasely_google/example/android/app/src/main/res/drawable/launch_background.xml delete mode 100644 purchasely_google/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 purchasely_google/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 purchasely_google/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 purchasely_google/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 purchasely_google/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png delete mode 100644 purchasely_google/example/android/app/src/main/res/values-night/styles.xml delete mode 100644 purchasely_google/example/android/app/src/main/res/values/styles.xml delete mode 100644 purchasely_google/example/android/app/src/profile/AndroidManifest.xml delete mode 100644 purchasely_google/example/android/build.gradle delete mode 100644 purchasely_google/example/android/gradle.properties delete mode 100644 purchasely_google/example/android/gradle/wrapper/gradle-wrapper.properties delete mode 100644 purchasely_google/example/android/settings.gradle delete mode 100644 purchasely_google/example/lib/main.dart delete mode 100644 purchasely_google/example/pubspec.lock delete mode 100644 purchasely_google/example/pubspec.yaml delete mode 100644 purchasely_google/example/test/widget_test.dart delete mode 100644 purchasely_google/test/purchasely_google_method_channel_test.dart delete mode 100644 purchasely_google/test/purchasely_google_test.dart diff --git a/VERSIONS.md b/VERSIONS.md index 1780127..17c1423 100644 --- a/VERSIONS.md +++ b/VERSIONS.md @@ -22,4 +22,5 @@ This file provides the underlying native SDK versions that the React Native SDK | 4.3.4 | 4.3.6 | 4.3.5 | | 4.4.0 | 4.4.2 | 4.4.2 | | 4.4.1 | 4.4.2 | 4.4.2 | -| 4.5.0 | 4.5.0 | 4.5.1 | \ No newline at end of file +| 4.5.0 | 4.5.0 | 4.5.1 | +| 4.5.1 | 4.5.2 | 4.5.5 | \ No newline at end of file diff --git a/purchasely/CHANGELOG.md b/purchasely/CHANGELOG.md index 845305e..c7a2b38 100644 --- a/purchasely/CHANGELOG.md +++ b/purchasely/CHANGELOG.md @@ -1,3 +1,5 @@ +## 4.5.1 +- Improvements and bug fixes. ## 4.5.0 - Markdown: Enhanced text formatting capabilities by supporting markdown syntax for bold, italic, strikethrough, and links. Reach out to the Customer Success Team to activate it for your account. - Amount Tag Pricing: Improved price display on AMOUNT tag by hiding decimals when the price is a whole number. diff --git a/purchasely/android/build.gradle b/purchasely/android/build.gradle index 594b0c6..897d6de 100644 --- a/purchasely/android/build.gradle +++ b/purchasely/android/build.gradle @@ -9,7 +9,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.3.1' + classpath 'com.android.tools.build:gradle:8.7.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -25,6 +25,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + namespace 'io.purchasely.purchasely_flutter' compileSdkVersion 31 compileOptions { @@ -50,5 +51,5 @@ dependencies { api 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0' - api 'io.purchasely:core:4.5.1' + api 'io.purchasely:core:4.5.5' } diff --git a/purchasely/android/gradle/wrapper/gradle-wrapper.properties b/purchasely/android/gradle/wrapper/gradle-wrapper.properties index cb24abd..6b74f0f 100644 --- a/purchasely/android/gradle/wrapper/gradle-wrapper.properties +++ b/purchasely/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip diff --git a/purchasely/android/src/main/AndroidManifest.xml b/purchasely/android/src/main/AndroidManifest.xml index 8f5909d..fffbc8c 100644 --- a/purchasely/android/src/main/AndroidManifest.xml +++ b/purchasely/android/src/main/AndroidManifest.xml @@ -1,5 +1,4 @@ - + diff --git a/purchasely/example/android/app/build.gradle b/purchasely/example/android/app/build.gradle index 293e07b..d89c46f 100644 --- a/purchasely/example/android/app/build.gradle +++ b/purchasely/example/android/app/build.gradle @@ -26,6 +26,8 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { + namespace 'io.purchasely.sample' + compileSdkVersion 33 compileOptions { @@ -66,6 +68,6 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'io.purchasely:google-play:4.5.1' - implementation 'io.purchasely:player:4.5.1' + implementation 'io.purchasely:google-play:4.5.5' + implementation 'io.purchasely:player:4.5.5' } diff --git a/purchasely/example/android/app/src/main/AndroidManifest.xml b/purchasely/example/android/app/src/main/AndroidManifest.xml index 0edc975..f9512ad 100644 --- a/purchasely/example/android/app/src/main/AndroidManifest.xml +++ b/purchasely/example/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/purchasely/example/android/build.gradle b/purchasely/example/android/build.gradle index e856dce..804f4bd 100644 --- a/purchasely/example/android/build.gradle +++ b/purchasely/example/android/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.3.1' + classpath 'com.android.tools.build:gradle:8.7.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/purchasely/example/android/gradle/wrapper/gradle-wrapper.properties b/purchasely/example/android/gradle/wrapper/gradle-wrapper.properties index cc5527d..a3b8aa7 100644 --- a/purchasely/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/purchasely/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip diff --git a/purchasely/ios/Classes/SwiftPurchaselyFlutterPlugin.swift b/purchasely/ios/Classes/SwiftPurchaselyFlutterPlugin.swift index c1035e9..8d036b0 100644 --- a/purchasely/ios/Classes/SwiftPurchaselyFlutterPlugin.swift +++ b/purchasely/ios/Classes/SwiftPurchaselyFlutterPlugin.swift @@ -283,7 +283,7 @@ public class SwiftPurchaselyFlutterPlugin: NSObject, FlutterPlugin { return } - Purchasely.setSdkBridgeVersion("4.5.0") + Purchasely.setSdkBridgeVersion("4.5.1") Purchasely.setAppTechnology(PLYAppTechnology.flutter) let logLevel = PLYLogger.LogLevel(rawValue: (arguments["logLevel"] as? Int) ?? PLYLogger.LogLevel.debug.rawValue) ?? PLYLogger.LogLevel.debug diff --git a/purchasely/ios/purchasely_flutter.podspec b/purchasely/ios/purchasely_flutter.podspec index fbc7aba..db1b0a4 100644 --- a/purchasely/ios/purchasely_flutter.podspec +++ b/purchasely/ios/purchasely_flutter.podspec @@ -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', '4.5.0' + s.dependency 'Purchasely', '4.5.2' s.static_framework = true end diff --git a/purchasely/pubspec.yaml b/purchasely/pubspec.yaml index 88e6213..393eb7e 100644 --- a/purchasely/pubspec.yaml +++ b/purchasely/pubspec.yaml @@ -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: 4.5.0 +version: 4.5.1 homepage: https://www.purchasely.com/ environment: diff --git a/purchasely_android_player/CHANGELOG.md b/purchasely_android_player/CHANGELOG.md index 845305e..c7a2b38 100644 --- a/purchasely_android_player/CHANGELOG.md +++ b/purchasely_android_player/CHANGELOG.md @@ -1,3 +1,5 @@ +## 4.5.1 +- Improvements and bug fixes. ## 4.5.0 - Markdown: Enhanced text formatting capabilities by supporting markdown syntax for bold, italic, strikethrough, and links. Reach out to the Customer Success Team to activate it for your account. - Amount Tag Pricing: Improved price display on AMOUNT tag by hiding decimals when the price is a whole number. diff --git a/purchasely_android_player/android/build.gradle b/purchasely_android_player/android/build.gradle index 69b5a3d..87fb58b 100644 --- a/purchasely_android_player/android/build.gradle +++ b/purchasely_android_player/android/build.gradle @@ -48,5 +48,5 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - api 'io.purchasely:player:4.5.1' + api 'io.purchasely:player:4.5.5' } diff --git a/purchasely_android_player/example/.gitignore b/purchasely_android_player/example/.gitignore deleted file mode 100644 index a8e938c..0000000 --- a/purchasely_android_player/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Web related -lib/generated_plugin_registrant.dart - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release diff --git a/purchasely_android_player/example/README.md b/purchasely_android_player/example/README.md deleted file mode 100644 index dd8f160..0000000 --- a/purchasely_android_player/example/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# purchasely_android_player_example - -Demonstrates how to use the purchasely_android_player plugin. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) - -For help getting started with Flutter development, view the -[online documentation](https://docs.flutter.dev/), which offers tutorials, -samples, guidance on mobile development, and a full API reference. diff --git a/purchasely_android_player/example/analysis_options.yaml b/purchasely_android_player/example/analysis_options.yaml deleted file mode 100644 index 61b6c4d..0000000 --- a/purchasely_android_player/example/analysis_options.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# This file configures the analyzer, which statically analyzes Dart code to -# check for errors, warnings, and lints. -# -# The issues identified by the analyzer are surfaced in the UI of Dart-enabled -# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be -# invoked from the command line by running `flutter analyze`. - -# The following line activates a set of recommended lints for Flutter apps, -# packages, and plugins designed to encourage good coding practices. -include: package:flutter_lints/flutter.yaml - -linter: - # The lint rules applied to this project can be customized in the - # section below to disable rules from the `package:flutter_lints/flutter.yaml` - # included above or to enable additional rules. A list of all available lints - # and their documentation is published at - # https://dart-lang.github.io/linter/lints/index.html. - # - # Instead of disabling a lint rule for the entire project in the - # section below, it can also be suppressed for a single line of code - # or a specific dart file by using the `// ignore: name_of_lint` and - # `// ignore_for_file: name_of_lint` syntax on the line or in the file - # producing the lint. - rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options diff --git a/purchasely_android_player/example/android/.gitignore b/purchasely_android_player/example/android/.gitignore deleted file mode 100644 index 6f56801..0000000 --- a/purchasely_android_player/example/android/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -gradle-wrapper.jar -/.gradle -/captures/ -/gradlew -/gradlew.bat -/local.properties -GeneratedPluginRegistrant.java - -# Remember to never publicly share your keystore. -# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app -key.properties -**/*.keystore -**/*.jks diff --git a/purchasely_android_player/example/android/app/build.gradle b/purchasely_android_player/example/android/app/build.gradle deleted file mode 100644 index 1ce1ccf..0000000 --- a/purchasely_android_player/example/android/app/build.gradle +++ /dev/null @@ -1,71 +0,0 @@ -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -android { - compileSdkVersion flutter.compileSdkVersion - ndkVersion flutter.ndkVersion - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - kotlinOptions { - jvmTarget = '1.8' - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "io.purchasely.sample.player.purchasely_android_player_example" - // You can update the following values to match your application needs. - // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. - minSdkVersion flutter.minSdkVersion - targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - } - - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } -} - -flutter { - source '../..' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} diff --git a/purchasely_android_player/example/android/app/src/debug/AndroidManifest.xml b/purchasely_android_player/example/android/app/src/debug/AndroidManifest.xml deleted file mode 100644 index cd9e867..0000000 --- a/purchasely_android_player/example/android/app/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/purchasely_android_player/example/android/app/src/main/AndroidManifest.xml b/purchasely_android_player/example/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index f2e4dd9..0000000 --- a/purchasely_android_player/example/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/purchasely_android_player/example/android/app/src/main/kotlin/io/purchasely/sample/player/purchasely_android_player_example/MainActivity.kt b/purchasely_android_player/example/android/app/src/main/kotlin/io/purchasely/sample/player/purchasely_android_player_example/MainActivity.kt deleted file mode 100644 index 27a1422..0000000 --- a/purchasely_android_player/example/android/app/src/main/kotlin/io/purchasely/sample/player/purchasely_android_player_example/MainActivity.kt +++ /dev/null @@ -1,6 +0,0 @@ -package io.purchasely.sample.player.purchasely_android_player_example - -import io.flutter.embedding.android.FlutterActivity - -class MainActivity: FlutterActivity() { -} diff --git a/purchasely_android_player/example/android/app/src/main/res/drawable-v21/launch_background.xml b/purchasely_android_player/example/android/app/src/main/res/drawable-v21/launch_background.xml deleted file mode 100644 index f74085f..0000000 --- a/purchasely_android_player/example/android/app/src/main/res/drawable-v21/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/purchasely_android_player/example/android/app/src/main/res/drawable/launch_background.xml b/purchasely_android_player/example/android/app/src/main/res/drawable/launch_background.xml deleted file mode 100644 index 304732f..0000000 --- a/purchasely_android_player/example/android/app/src/main/res/drawable/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/purchasely_android_player/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/purchasely_android_player/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index db77bb4b7b0906d62b1847e87f15cdcacf6a4f29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 544 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY3?!3`olAj~WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!h8bpbvhu0Wd6uZuB!w&u2PAxD2eNXD>P5D~Wn-+_Wa#27Xc zC?Zj|6r#X(-D3u$NCt}(Ms06KgJ4FxJVv{GM)!I~&n8Bnc94O7-Hd)cjDZswgC;Qs zO=b+9!WcT8F?0rF7!Uys2bs@gozCP?z~o%U|N3vA*22NaGQG zlg@K`O_XuxvZ&Ks^m&R!`&1=spLvfx7oGDKDwpwW`#iqdw@AL`7MR}m`rwr|mZgU`8P7SBkL78fFf!WnuYWm$5Z0 zNXhDbCv&49sM544K|?c)WrFfiZvCi9h0O)B3Pgg&ebxsLQ05GG~ AQ2+n{ diff --git a/purchasely_android_player/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/purchasely_android_player/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 17987b79bb8a35cc66c3c1fd44f5a5526c1b78be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 442 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-sk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5Xx&nMcT!A!W`0S9QKQy;}1Cl^CgaH=;G9cpY;r$Q>i*pfB zP2drbID<_#qf;rPZx^FqH)F_D#*k@@q03KywUtLX8Ua?`H+NMzkczFPK3lFz@i_kW%1NOn0|D2I9n9wzH8m|-tHjsw|9>@K=iMBhxvkv6m8Y-l zytQ?X=U+MF$@3 zt`~i=@j|6y)RWMK--}M|=T`o&^Ni>IoWKHEbBXz7?A@mgWoL>!*SXo`SZH-*HSdS+ yn*9;$7;m`l>wYBC5bq;=U}IMqLzqbYCidGC!)_gkIk_C@Uy!y&wkt5C($~2D>~)O*cj@FGjOCM)M>_ixfudOh)?xMu#Fs z#}Y=@YDTwOM)x{K_j*Q;dPdJ?Mz0n|pLRx{4n|)f>SXlmV)XB04CrSJn#dS5nK2lM zrZ9#~WelCp7&e13Y$jvaEXHskn$2V!!DN-nWS__6T*l;H&Fopn?A6HZ-6WRLFP=R` zqG+CE#d4|IbyAI+rJJ`&x9*T`+a=p|0O(+s{UBcyZdkhj=yS1>AirP+0R;mf2uMgM zC}@~JfByORAh4SyRgi&!(cja>F(l*O+nd+@4m$|6K6KDn_&uvCpV23&>G9HJp{xgg zoq1^2_p9@|WEo z*X_Uko@K)qYYv~>43eQGMdbiGbo>E~Q& zrYBH{QP^@Sti!`2)uG{irBBq@y*$B zi#&(U-*=fp74j)RyIw49+0MRPMRU)+a2r*PJ$L5roHt2$UjExCTZSbq%V!HeS7J$N zdG@vOZB4v_lF7Plrx+hxo7(fCV&}fHq)$ diff --git a/purchasely_android_player/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/purchasely_android_player/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d5f1c8d34e7a88e3f88bea192c3a370d44689c3c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1031 zcmeAS@N?(olHy`uVBq!ia0vp^6F``Q8Ax83A=Cw=BuiW)N`mv#O3D+9QW+dm@{>{( zJaZG%Q-e|yQz{EjrrIztFa`(sgt!6~Yi|1%a`XoT0ojZ}lNrNjb9xjc(B0U1_% zz5^97Xt*%oq$rQy4?0GKNfJ44uvxI)gC`h-NZ|&0-7(qS@?b!5r36oQ}zyZrNO3 zMO=Or+<~>+A&uN&E!^Sl+>xE!QC-|oJv`ApDhqC^EWD|@=#J`=d#Xzxs4ah}w&Jnc z$|q_opQ^2TrnVZ0o~wh<3t%W&flvYGe#$xqda2bR_R zvPYgMcHgjZ5nSA^lJr%;<&0do;O^tDDh~=pIxA#coaCY>&N%M2^tq^U%3DB@ynvKo}b?yu-bFc-u0JHzced$sg7S3zqI(2 z#Km{dPr7I=pQ5>FuK#)QwK?Y`E`B?nP+}U)I#c1+FM*1kNvWG|a(TpksZQ3B@sD~b zpQ2)*V*TdwjFOtHvV|;OsiDqHi=6%)o4b!)x$)%9pGTsE z-JL={-Ffv+T87W(Xpooq<`r*VzWQcgBN$$`u}f>-ZQI1BB8ykN*=e4rIsJx9>z}*o zo~|9I;xof diff --git a/purchasely_android_player/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/purchasely_android_player/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372eebdb28e45604e46eeda8dd24651419bc0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1443 zcmb`G{WsKk6vsdJTdFg%tJav9_E4vzrOaqkWF|A724Nly!y+?N9`YV6wZ}5(X(D_N(?!*n3`|_r0Hc?=PQw&*vnU?QTFY zB_MsH|!j$PP;I}?dppoE_gA(4uc!jV&0!l7_;&p2^pxNo>PEcNJv za5_RT$o2Mf!<+r?&EbHH6nMoTsDOa;mN(wv8RNsHpG)`^ymG-S5By8=l9iVXzN_eG%Xg2@Xeq76tTZ*dGh~Lo9vl;Zfs+W#BydUw zCkZ$o1LqWQO$FC9aKlLl*7x9^0q%0}$OMlp@Kk_jHXOjofdePND+j!A{q!8~Jn+s3 z?~~w@4?egS02}8NuulUA=L~QQfm;MzCGd)XhiftT;+zFO&JVyp2mBww?;QByS_1w! zrQlx%{^cMj0|Bo1FjwY@Q8?Hx0cIPF*@-ZRFpPc#bBw{5@tD(5%sClzIfl8WU~V#u zm5Q;_F!wa$BSpqhN>W@2De?TKWR*!ujY;Yylk_X5#~V!L*Gw~;$%4Q8~Mad z@`-kG?yb$a9cHIApZDVZ^U6Xkp<*4rU82O7%}0jjHlK{id@?-wpN*fCHXyXh(bLt* zPc}H-x0e4E&nQ>y%B-(EL=9}RyC%MyX=upHuFhAk&MLbsF0LP-q`XnH78@fT+pKPW zu72MW`|?8ht^tz$iC}ZwLp4tB;Q49K!QCF3@!iB1qOI=?w z7In!}F~ij(18UYUjnbmC!qKhPo%24?8U1x{7o(+?^Zu0Hx81|FuS?bJ0jgBhEMzf< zCgUq7r2OCB(`XkKcN-TL>u5y#dD6D!)5W?`O5)V^>jb)P)GBdy%t$uUMpf$SNV31$ zb||OojAbvMP?T@$h_ZiFLFVHDmbyMhJF|-_)HX3%m=CDI+ID$0^C>kzxprBW)hw(v zr!Gmda);ICoQyhV_oP5+C%?jcG8v+D@9f?Dk*!BxY}dazmrT@64UrP3hlslANK)bq z$67n83eh}OeW&SV@HG95P|bjfqJ7gw$e+`Hxo!4cx`jdK1bJ>YDSpGKLPZ^1cv$ek zIB?0S<#tX?SJCLWdMd{-ME?$hc7A$zBOdIJ)4!KcAwb=VMov)nK;9z>x~rfT1>dS+ zZ6#`2v@`jgbqq)P22H)Tx2CpmM^o1$B+xT6`(v%5xJ(?j#>Q$+rx_R|7TzDZe{J6q zG1*EcU%tE?!kO%^M;3aM6JN*LAKUVb^xz8-Pxo#jR5(-KBeLJvA@-gxNHx0M-ZJLl z;#JwQoh~9V?`UVo#}{6ka@II>++D@%KqGpMdlQ}?9E*wFcf5(#XQnP$Dk5~%iX^>f z%$y;?M0BLp{O3a(-4A?ewryHrrD%cx#Q^%KY1H zNre$ve+vceSLZcNY4U(RBX&)oZn*Py()h)XkE?PL$!bNb{N5FVI2Y%LKEm%yvpyTP z(1P?z~7YxD~Rf<(a@_y` diff --git a/purchasely_android_player/example/android/app/src/main/res/values-night/styles.xml b/purchasely_android_player/example/android/app/src/main/res/values-night/styles.xml deleted file mode 100644 index 06952be..0000000 --- a/purchasely_android_player/example/android/app/src/main/res/values-night/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/purchasely_android_player/example/android/app/src/main/res/values/styles.xml b/purchasely_android_player/example/android/app/src/main/res/values/styles.xml deleted file mode 100644 index cb1ef88..0000000 --- a/purchasely_android_player/example/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/purchasely_android_player/example/android/app/src/profile/AndroidManifest.xml b/purchasely_android_player/example/android/app/src/profile/AndroidManifest.xml deleted file mode 100644 index cd9e867..0000000 --- a/purchasely_android_player/example/android/app/src/profile/AndroidManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/purchasely_android_player/example/android/build.gradle b/purchasely_android_player/example/android/build.gradle deleted file mode 100644 index 9fbb189..0000000 --- a/purchasely_android_player/example/android/build.gradle +++ /dev/null @@ -1,31 +0,0 @@ -buildscript { - ext.kotlin_version = '1.7.21' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -allprojects { - repositories { - google() - mavenCentral() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/purchasely_android_player/example/android/gradle.properties b/purchasely_android_player/example/android/gradle.properties deleted file mode 100644 index 94adc3a..0000000 --- a/purchasely_android_player/example/android/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -org.gradle.jvmargs=-Xmx1536M -android.useAndroidX=true -android.enableJetifier=true diff --git a/purchasely_android_player/example/android/gradle/wrapper/gradle-wrapper.properties b/purchasely_android_player/example/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index cc5527d..0000000 --- a/purchasely_android_player/example/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Fri Jun 23 08:50:38 CEST 2017 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip diff --git a/purchasely_android_player/example/android/settings.gradle b/purchasely_android_player/example/android/settings.gradle deleted file mode 100644 index 44e62bc..0000000 --- a/purchasely_android_player/example/android/settings.gradle +++ /dev/null @@ -1,11 +0,0 @@ -include ':app' - -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() - -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } - -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/purchasely_android_player/example/lib/main.dart b/purchasely_android_player/example/lib/main.dart deleted file mode 100644 index 9ef744c..0000000 --- a/purchasely_android_player/example/lib/main.dart +++ /dev/null @@ -1,63 +0,0 @@ -import 'package:flutter/material.dart'; -import 'dart:async'; - -import 'package:flutter/services.dart'; -import 'package:purchasely_android_player/purchasely_android_player.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - String _platformVersion = 'Unknown'; - final _purchaselyAndroidPlayerPlugin = PurchaselyAndroidPlayer(); - - @override - void initState() { - super.initState(); - initPlatformState(); - } - - // Platform messages are asynchronous, so we initialize in an async method. - Future initPlatformState() async { - String platformVersion; - // Platform messages may fail, so we use a try/catch PlatformException. - // We also handle the message potentially returning null. - try { - platformVersion = - await _purchaselyAndroidPlayerPlugin.getPlatformVersion() ?? 'Unknown platform version'; - } on PlatformException { - platformVersion = 'Failed to get platform version.'; - } - - // If the widget was removed from the tree while the asynchronous platform - // message was in flight, we want to discard the reply rather than calling - // setState to update our non-existent appearance. - if (!mounted) return; - - setState(() { - _platformVersion = platformVersion; - }); - } - - @override - Widget build(BuildContext context) { - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Plugin example app'), - ), - body: Center( - child: Text('Running on: $_platformVersion\n'), - ), - ), - ); - } -} diff --git a/purchasely_android_player/example/pubspec.lock b/purchasely_android_player/example/pubspec.lock deleted file mode 100644 index 274ea25..0000000 --- a/purchasely_android_player/example/pubspec.lock +++ /dev/null @@ -1,228 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d - url: "https://pub.dev" - source: hosted - version: "1.0.6" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 - url: "https://pub.dev" - source: hosted - version: "2.0.3" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" - url: "https://pub.dev" - source: hosted - version: "10.0.0" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 - url: "https://pub.dev" - source: hosted - version: "2.0.1" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 - url: "https://pub.dev" - source: hosted - version: "2.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" - url: "https://pub.dev" - source: hosted - version: "0.8.0" - meta: - dependency: transitive - description: - name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 - url: "https://pub.dev" - source: hosted - version: "1.11.0" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" - url: "https://pub.dev" - source: hosted - version: "2.1.8" - purchasely_android_player: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "4.3.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" - url: "https://pub.dev" - source: hosted - version: "0.6.1" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 - url: "https://pub.dev" - source: hosted - version: "13.0.0" -sdks: - dart: ">=3.2.0-0 <4.0.0" - flutter: ">=2.5.0" diff --git a/purchasely_android_player/example/pubspec.yaml b/purchasely_android_player/example/pubspec.yaml deleted file mode 100644 index d4fca81..0000000 --- a/purchasely_android_player/example/pubspec.yaml +++ /dev/null @@ -1,84 +0,0 @@ -name: purchasely_android_player_example -description: Demonstrates how to use the purchasely_android_player plugin. - -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev - -environment: - sdk: ">=2.17.3 <3.0.0" - -# Dependencies specify other packages that your package needs in order to work. -# To automatically upgrade your package dependencies to the latest versions -# consider running `flutter pub upgrade --major-versions`. Alternatively, -# dependencies can be manually updated by changing the version numbers below to -# the latest version available on pub.dev. To see which dependencies have newer -# versions available, run `flutter pub outdated`. -dependencies: - flutter: - sdk: flutter - - purchasely_android_player: - # When depending on this package from a real application you should use: - # purchasely_android_player: ^x.y.z - # See https://dart.dev/tools/pub/dependencies#version-constraints - # The example app is bundled with the plugin so we use a path dependency on - # the parent directory to use the current plugin's version. - path: ../ - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^2.0.0 - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. -flutter: - - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. - uses-material-design: true - - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/purchasely_android_player/example/test/widget_test.dart b/purchasely_android_player/example/test/widget_test.dart deleted file mode 100644 index cbcf637..0000000 --- a/purchasely_android_player/example/test/widget_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility in the flutter_test package. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:purchasely_android_player_example/main.dart'; - -void main() { - testWidgets('Verify Platform version', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that platform version is retrieved. - expect( - find.byWidgetPredicate( - (Widget widget) => widget is Text && - widget.data!.startsWith('Running on:'), - ), - findsOneWidget, - ); - }); -} diff --git a/purchasely_android_player/pubspec.yaml b/purchasely_android_player/pubspec.yaml index 68f5116..8af9816 100644 --- a/purchasely_android_player/pubspec.yaml +++ b/purchasely_android_player/pubspec.yaml @@ -1,6 +1,6 @@ name: purchasely_android_player description: Purchasely Player dependency for Android -version: 4.5.0 +version: 4.5.1 homepage: https://www.purchasely.com/ environment: diff --git a/purchasely_android_player/test/purchasely_android_player_method_channel_test.dart b/purchasely_android_player/test/purchasely_android_player_method_channel_test.dart deleted file mode 100644 index 0678996..0000000 --- a/purchasely_android_player/test/purchasely_android_player_method_channel_test.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:flutter/services.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:purchasely_android_player/purchasely_android_player_method_channel.dart'; - -void main() { - MethodChannelPurchaselyAndroidPlayer platform = MethodChannelPurchaselyAndroidPlayer(); - const MethodChannel channel = MethodChannel('purchasely_android_player'); - - TestWidgetsFlutterBinding.ensureInitialized(); - - setUp(() { - channel.setMockMethodCallHandler((MethodCall methodCall) async { - return '42'; - }); - }); - - tearDown(() { - channel.setMockMethodCallHandler(null); - }); - - test('getPlatformVersion', () async { - expect(await platform.getPlatformVersion(), '42'); - }); -} diff --git a/purchasely_android_player/test/purchasely_android_player_test.dart b/purchasely_android_player/test/purchasely_android_player_test.dart deleted file mode 100644 index 82fea9d..0000000 --- a/purchasely_android_player/test/purchasely_android_player_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -import 'package:flutter_test/flutter_test.dart'; -import 'package:purchasely_android_player/purchasely_android_player.dart'; -import 'package:purchasely_android_player/purchasely_android_player_platform_interface.dart'; -import 'package:purchasely_android_player/purchasely_android_player_method_channel.dart'; -import 'package:plugin_platform_interface/plugin_platform_interface.dart'; - -class MockPurchaselyAndroidPlayerPlatform - with MockPlatformInterfaceMixin - implements PurchaselyAndroidPlayerPlatform { - - @override - Future getPlatformVersion() => Future.value('42'); -} - -void main() { - final PurchaselyAndroidPlayerPlatform initialPlatform = PurchaselyAndroidPlayerPlatform.instance; - - test('$MethodChannelPurchaselyAndroidPlayer is the default instance', () { - expect(initialPlatform, isInstanceOf()); - }); - - test('getPlatformVersion', () async { - PurchaselyAndroidPlayer purchaselyAndroidPlayerPlugin = PurchaselyAndroidPlayer(); - MockPurchaselyAndroidPlayerPlatform fakePlatform = MockPurchaselyAndroidPlayerPlatform(); - PurchaselyAndroidPlayerPlatform.instance = fakePlatform; - - expect(await purchaselyAndroidPlayerPlugin.getPlatformVersion(), '42'); - }); -} diff --git a/purchasely_google/CHANGELOG.md b/purchasely_google/CHANGELOG.md index 845305e..c7a2b38 100644 --- a/purchasely_google/CHANGELOG.md +++ b/purchasely_google/CHANGELOG.md @@ -1,3 +1,5 @@ +## 4.5.1 +- Improvements and bug fixes. ## 4.5.0 - Markdown: Enhanced text formatting capabilities by supporting markdown syntax for bold, italic, strikethrough, and links. Reach out to the Customer Success Team to activate it for your account. - Amount Tag Pricing: Improved price display on AMOUNT tag by hiding decimals when the price is a whole number. diff --git a/purchasely_google/android/build.gradle b/purchasely_google/android/build.gradle index 3050dad..07446f7 100644 --- a/purchasely_google/android/build.gradle +++ b/purchasely_google/android/build.gradle @@ -48,5 +48,5 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - api 'io.purchasely:google-play:4.5.1' + api 'io.purchasely:google-play:4.5.5' } diff --git a/purchasely_google/example/.gitignore b/purchasely_google/example/.gitignore deleted file mode 100644 index a8e938c..0000000 --- a/purchasely_google/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Web related -lib/generated_plugin_registrant.dart - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release diff --git a/purchasely_google/example/README.md b/purchasely_google/example/README.md deleted file mode 100644 index 7171492..0000000 --- a/purchasely_google/example/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# purchasely_google_example - -Demonstrates how to use the purchasely_google plugin. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) - -For help getting started with Flutter development, view the -[online documentation](https://docs.flutter.dev/), which offers tutorials, -samples, guidance on mobile development, and a full API reference. diff --git a/purchasely_google/example/analysis_options.yaml b/purchasely_google/example/analysis_options.yaml deleted file mode 100644 index 61b6c4d..0000000 --- a/purchasely_google/example/analysis_options.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# This file configures the analyzer, which statically analyzes Dart code to -# check for errors, warnings, and lints. -# -# The issues identified by the analyzer are surfaced in the UI of Dart-enabled -# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be -# invoked from the command line by running `flutter analyze`. - -# The following line activates a set of recommended lints for Flutter apps, -# packages, and plugins designed to encourage good coding practices. -include: package:flutter_lints/flutter.yaml - -linter: - # The lint rules applied to this project can be customized in the - # section below to disable rules from the `package:flutter_lints/flutter.yaml` - # included above or to enable additional rules. A list of all available lints - # and their documentation is published at - # https://dart-lang.github.io/linter/lints/index.html. - # - # Instead of disabling a lint rule for the entire project in the - # section below, it can also be suppressed for a single line of code - # or a specific dart file by using the `// ignore: name_of_lint` and - # `// ignore_for_file: name_of_lint` syntax on the line or in the file - # producing the lint. - rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options diff --git a/purchasely_google/example/android/.gitignore b/purchasely_google/example/android/.gitignore deleted file mode 100644 index 6f56801..0000000 --- a/purchasely_google/example/android/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -gradle-wrapper.jar -/.gradle -/captures/ -/gradlew -/gradlew.bat -/local.properties -GeneratedPluginRegistrant.java - -# Remember to never publicly share your keystore. -# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app -key.properties -**/*.keystore -**/*.jks diff --git a/purchasely_google/example/android/app/build.gradle b/purchasely_google/example/android/app/build.gradle deleted file mode 100644 index 4e7ba6c..0000000 --- a/purchasely_google/example/android/app/build.gradle +++ /dev/null @@ -1,71 +0,0 @@ -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -android { - compileSdkVersion flutter.compileSdkVersion - ndkVersion flutter.ndkVersion - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - kotlinOptions { - jvmTarget = '1.8' - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "io.purchasely.sample.google.purchasely_google_example" - // You can update the following values to match your application needs. - // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. - minSdkVersion flutter.minSdkVersion - targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - } - - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } -} - -flutter { - source '../..' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} diff --git a/purchasely_google/example/android/app/src/debug/AndroidManifest.xml b/purchasely_google/example/android/app/src/debug/AndroidManifest.xml deleted file mode 100644 index 4422644..0000000 --- a/purchasely_google/example/android/app/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/purchasely_google/example/android/app/src/main/AndroidManifest.xml b/purchasely_google/example/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index 6aeb464..0000000 --- a/purchasely_google/example/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/purchasely_google/example/android/app/src/main/kotlin/io/purchasely/sample/google/purchasely_google_example/MainActivity.kt b/purchasely_google/example/android/app/src/main/kotlin/io/purchasely/sample/google/purchasely_google_example/MainActivity.kt deleted file mode 100644 index 2cf8abe..0000000 --- a/purchasely_google/example/android/app/src/main/kotlin/io/purchasely/sample/google/purchasely_google_example/MainActivity.kt +++ /dev/null @@ -1,6 +0,0 @@ -package io.purchasely.sample.google.purchasely_google_example - -import io.flutter.embedding.android.FlutterActivity - -class MainActivity: FlutterActivity() { -} diff --git a/purchasely_google/example/android/app/src/main/res/drawable-v21/launch_background.xml b/purchasely_google/example/android/app/src/main/res/drawable-v21/launch_background.xml deleted file mode 100644 index f74085f..0000000 --- a/purchasely_google/example/android/app/src/main/res/drawable-v21/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/purchasely_google/example/android/app/src/main/res/drawable/launch_background.xml b/purchasely_google/example/android/app/src/main/res/drawable/launch_background.xml deleted file mode 100644 index 304732f..0000000 --- a/purchasely_google/example/android/app/src/main/res/drawable/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/purchasely_google/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/purchasely_google/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index db77bb4b7b0906d62b1847e87f15cdcacf6a4f29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 544 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY3?!3`olAj~WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!h8bpbvhu0Wd6uZuB!w&u2PAxD2eNXD>P5D~Wn-+_Wa#27Xc zC?Zj|6r#X(-D3u$NCt}(Ms06KgJ4FxJVv{GM)!I~&n8Bnc94O7-Hd)cjDZswgC;Qs zO=b+9!WcT8F?0rF7!Uys2bs@gozCP?z~o%U|N3vA*22NaGQG zlg@K`O_XuxvZ&Ks^m&R!`&1=spLvfx7oGDKDwpwW`#iqdw@AL`7MR}m`rwr|mZgU`8P7SBkL78fFf!WnuYWm$5Z0 zNXhDbCv&49sM544K|?c)WrFfiZvCi9h0O)B3Pgg&ebxsLQ05GG~ AQ2+n{ diff --git a/purchasely_google/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/purchasely_google/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 17987b79bb8a35cc66c3c1fd44f5a5526c1b78be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 442 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-sk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5Xx&nMcT!A!W`0S9QKQy;}1Cl^CgaH=;G9cpY;r$Q>i*pfB zP2drbID<_#qf;rPZx^FqH)F_D#*k@@q03KywUtLX8Ua?`H+NMzkczFPK3lFz@i_kW%1NOn0|D2I9n9wzH8m|-tHjsw|9>@K=iMBhxvkv6m8Y-l zytQ?X=U+MF$@3 zt`~i=@j|6y)RWMK--}M|=T`o&^Ni>IoWKHEbBXz7?A@mgWoL>!*SXo`SZH-*HSdS+ yn*9;$7;m`l>wYBC5bq;=U}IMqLzqbYCidGC!)_gkIk_C@Uy!y&wkt5C($~2D>~)O*cj@FGjOCM)M>_ixfudOh)?xMu#Fs z#}Y=@YDTwOM)x{K_j*Q;dPdJ?Mz0n|pLRx{4n|)f>SXlmV)XB04CrSJn#dS5nK2lM zrZ9#~WelCp7&e13Y$jvaEXHskn$2V!!DN-nWS__6T*l;H&Fopn?A6HZ-6WRLFP=R` zqG+CE#d4|IbyAI+rJJ`&x9*T`+a=p|0O(+s{UBcyZdkhj=yS1>AirP+0R;mf2uMgM zC}@~JfByORAh4SyRgi&!(cja>F(l*O+nd+@4m$|6K6KDn_&uvCpV23&>G9HJp{xgg zoq1^2_p9@|WEo z*X_Uko@K)qYYv~>43eQGMdbiGbo>E~Q& zrYBH{QP^@Sti!`2)uG{irBBq@y*$B zi#&(U-*=fp74j)RyIw49+0MRPMRU)+a2r*PJ$L5roHt2$UjExCTZSbq%V!HeS7J$N zdG@vOZB4v_lF7Plrx+hxo7(fCV&}fHq)$ diff --git a/purchasely_google/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/purchasely_google/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d5f1c8d34e7a88e3f88bea192c3a370d44689c3c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1031 zcmeAS@N?(olHy`uVBq!ia0vp^6F``Q8Ax83A=Cw=BuiW)N`mv#O3D+9QW+dm@{>{( zJaZG%Q-e|yQz{EjrrIztFa`(sgt!6~Yi|1%a`XoT0ojZ}lNrNjb9xjc(B0U1_% zz5^97Xt*%oq$rQy4?0GKNfJ44uvxI)gC`h-NZ|&0-7(qS@?b!5r36oQ}zyZrNO3 zMO=Or+<~>+A&uN&E!^Sl+>xE!QC-|oJv`ApDhqC^EWD|@=#J`=d#Xzxs4ah}w&Jnc z$|q_opQ^2TrnVZ0o~wh<3t%W&flvYGe#$xqda2bR_R zvPYgMcHgjZ5nSA^lJr%;<&0do;O^tDDh~=pIxA#coaCY>&N%M2^tq^U%3DB@ynvKo}b?yu-bFc-u0JHzced$sg7S3zqI(2 z#Km{dPr7I=pQ5>FuK#)QwK?Y`E`B?nP+}U)I#c1+FM*1kNvWG|a(TpksZQ3B@sD~b zpQ2)*V*TdwjFOtHvV|;OsiDqHi=6%)o4b!)x$)%9pGTsE z-JL={-Ffv+T87W(Xpooq<`r*VzWQcgBN$$`u}f>-ZQI1BB8ykN*=e4rIsJx9>z}*o zo~|9I;xof diff --git a/purchasely_google/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/purchasely_google/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372eebdb28e45604e46eeda8dd24651419bc0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1443 zcmb`G{WsKk6vsdJTdFg%tJav9_E4vzrOaqkWF|A724Nly!y+?N9`YV6wZ}5(X(D_N(?!*n3`|_r0Hc?=PQw&*vnU?QTFY zB_MsH|!j$PP;I}?dppoE_gA(4uc!jV&0!l7_;&p2^pxNo>PEcNJv za5_RT$o2Mf!<+r?&EbHH6nMoTsDOa;mN(wv8RNsHpG)`^ymG-S5By8=l9iVXzN_eG%Xg2@Xeq76tTZ*dGh~Lo9vl;Zfs+W#BydUw zCkZ$o1LqWQO$FC9aKlLl*7x9^0q%0}$OMlp@Kk_jHXOjofdePND+j!A{q!8~Jn+s3 z?~~w@4?egS02}8NuulUA=L~QQfm;MzCGd)XhiftT;+zFO&JVyp2mBww?;QByS_1w! zrQlx%{^cMj0|Bo1FjwY@Q8?Hx0cIPF*@-ZRFpPc#bBw{5@tD(5%sClzIfl8WU~V#u zm5Q;_F!wa$BSpqhN>W@2De?TKWR*!ujY;Yylk_X5#~V!L*Gw~;$%4Q8~Mad z@`-kG?yb$a9cHIApZDVZ^U6Xkp<*4rU82O7%}0jjHlK{id@?-wpN*fCHXyXh(bLt* zPc}H-x0e4E&nQ>y%B-(EL=9}RyC%MyX=upHuFhAk&MLbsF0LP-q`XnH78@fT+pKPW zu72MW`|?8ht^tz$iC}ZwLp4tB;Q49K!QCF3@!iB1qOI=?w z7In!}F~ij(18UYUjnbmC!qKhPo%24?8U1x{7o(+?^Zu0Hx81|FuS?bJ0jgBhEMzf< zCgUq7r2OCB(`XkKcN-TL>u5y#dD6D!)5W?`O5)V^>jb)P)GBdy%t$uUMpf$SNV31$ zb||OojAbvMP?T@$h_ZiFLFVHDmbyMhJF|-_)HX3%m=CDI+ID$0^C>kzxprBW)hw(v zr!Gmda);ICoQyhV_oP5+C%?jcG8v+D@9f?Dk*!BxY}dazmrT@64UrP3hlslANK)bq z$67n83eh}OeW&SV@HG95P|bjfqJ7gw$e+`Hxo!4cx`jdK1bJ>YDSpGKLPZ^1cv$ek zIB?0S<#tX?SJCLWdMd{-ME?$hc7A$zBOdIJ)4!KcAwb=VMov)nK;9z>x~rfT1>dS+ zZ6#`2v@`jgbqq)P22H)Tx2CpmM^o1$B+xT6`(v%5xJ(?j#>Q$+rx_R|7TzDZe{J6q zG1*EcU%tE?!kO%^M;3aM6JN*LAKUVb^xz8-Pxo#jR5(-KBeLJvA@-gxNHx0M-ZJLl z;#JwQoh~9V?`UVo#}{6ka@II>++D@%KqGpMdlQ}?9E*wFcf5(#XQnP$Dk5~%iX^>f z%$y;?M0BLp{O3a(-4A?ewryHrrD%cx#Q^%KY1H zNre$ve+vceSLZcNY4U(RBX&)oZn*Py()h)XkE?PL$!bNb{N5FVI2Y%LKEm%yvpyTP z(1P?z~7YxD~Rf<(a@_y` diff --git a/purchasely_google/example/android/app/src/main/res/values-night/styles.xml b/purchasely_google/example/android/app/src/main/res/values-night/styles.xml deleted file mode 100644 index 06952be..0000000 --- a/purchasely_google/example/android/app/src/main/res/values-night/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/purchasely_google/example/android/app/src/main/res/values/styles.xml b/purchasely_google/example/android/app/src/main/res/values/styles.xml deleted file mode 100644 index cb1ef88..0000000 --- a/purchasely_google/example/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/purchasely_google/example/android/app/src/profile/AndroidManifest.xml b/purchasely_google/example/android/app/src/profile/AndroidManifest.xml deleted file mode 100644 index 4422644..0000000 --- a/purchasely_google/example/android/app/src/profile/AndroidManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/purchasely_google/example/android/build.gradle b/purchasely_google/example/android/build.gradle deleted file mode 100644 index 9fbb189..0000000 --- a/purchasely_google/example/android/build.gradle +++ /dev/null @@ -1,31 +0,0 @@ -buildscript { - ext.kotlin_version = '1.7.21' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -allprojects { - repositories { - google() - mavenCentral() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/purchasely_google/example/android/gradle.properties b/purchasely_google/example/android/gradle.properties deleted file mode 100644 index 94adc3a..0000000 --- a/purchasely_google/example/android/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -org.gradle.jvmargs=-Xmx1536M -android.useAndroidX=true -android.enableJetifier=true diff --git a/purchasely_google/example/android/gradle/wrapper/gradle-wrapper.properties b/purchasely_google/example/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index cc5527d..0000000 --- a/purchasely_google/example/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Fri Jun 23 08:50:38 CEST 2017 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip diff --git a/purchasely_google/example/android/settings.gradle b/purchasely_google/example/android/settings.gradle deleted file mode 100644 index 44e62bc..0000000 --- a/purchasely_google/example/android/settings.gradle +++ /dev/null @@ -1,11 +0,0 @@ -include ':app' - -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() - -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } - -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/purchasely_google/example/lib/main.dart b/purchasely_google/example/lib/main.dart deleted file mode 100644 index 0dc03c6..0000000 --- a/purchasely_google/example/lib/main.dart +++ /dev/null @@ -1,63 +0,0 @@ -import 'package:flutter/material.dart'; -import 'dart:async'; - -import 'package:flutter/services.dart'; -import 'package:purchasely_google/purchasely_google.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({Key? key}) : super(key: key); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - String _platformVersion = 'Unknown'; - final _purchaselyGooglePlugin = PurchaselyGoogle(); - - @override - void initState() { - super.initState(); - initPlatformState(); - } - - // Platform messages are asynchronous, so we initialize in an async method. - Future initPlatformState() async { - String platformVersion; - // Platform messages may fail, so we use a try/catch PlatformException. - // We also handle the message potentially returning null. - try { - platformVersion = - await _purchaselyGooglePlugin.getPlatformVersion() ?? 'Unknown platform version'; - } on PlatformException { - platformVersion = 'Failed to get platform version.'; - } - - // If the widget was removed from the tree while the asynchronous platform - // message was in flight, we want to discard the reply rather than calling - // setState to update our non-existent appearance. - if (!mounted) return; - - setState(() { - _platformVersion = platformVersion; - }); - } - - @override - Widget build(BuildContext context) { - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Plugin example app'), - ), - body: Center( - child: Text('Running on: $_platformVersion\n'), - ), - ), - ); - } -} diff --git a/purchasely_google/example/pubspec.lock b/purchasely_google/example/pubspec.lock deleted file mode 100644 index 6992e01..0000000 --- a/purchasely_google/example/pubspec.lock +++ /dev/null @@ -1,228 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d - url: "https://pub.dev" - source: hosted - version: "1.0.6" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 - url: "https://pub.dev" - source: hosted - version: "2.0.3" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" - url: "https://pub.dev" - source: hosted - version: "10.0.0" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 - url: "https://pub.dev" - source: hosted - version: "2.0.1" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 - url: "https://pub.dev" - source: hosted - version: "2.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" - url: "https://pub.dev" - source: hosted - version: "0.8.0" - meta: - dependency: transitive - description: - name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 - url: "https://pub.dev" - source: hosted - version: "1.11.0" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" - url: "https://pub.dev" - source: hosted - version: "2.1.8" - purchasely_google: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "4.3.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" - url: "https://pub.dev" - source: hosted - version: "0.6.1" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 - url: "https://pub.dev" - source: hosted - version: "13.0.0" -sdks: - dart: ">=3.2.0-0 <4.0.0" - flutter: ">=2.5.0" diff --git a/purchasely_google/example/pubspec.yaml b/purchasely_google/example/pubspec.yaml deleted file mode 100644 index 391d500..0000000 --- a/purchasely_google/example/pubspec.yaml +++ /dev/null @@ -1,84 +0,0 @@ -name: purchasely_google_example -description: Demonstrates how to use the purchasely_google plugin. - -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev - -environment: - sdk: ">=2.17.3 <3.0.0" - -# Dependencies specify other packages that your package needs in order to work. -# To automatically upgrade your package dependencies to the latest versions -# consider running `flutter pub upgrade --major-versions`. Alternatively, -# dependencies can be manually updated by changing the version numbers below to -# the latest version available on pub.dev. To see which dependencies have newer -# versions available, run `flutter pub outdated`. -dependencies: - flutter: - sdk: flutter - - purchasely_google: - # When depending on this package from a real application you should use: - # purchasely_google: ^x.y.z - # See https://dart.dev/tools/pub/dependencies#version-constraints - # The example app is bundled with the plugin so we use a path dependency on - # the parent directory to use the current plugin's version. - path: ../ - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^2.0.0 - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. -flutter: - - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. - uses-material-design: true - - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/purchasely_google/example/test/widget_test.dart b/purchasely_google/example/test/widget_test.dart deleted file mode 100644 index fb4da34..0000000 --- a/purchasely_google/example/test/widget_test.dart +++ /dev/null @@ -1,27 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility in the flutter_test package. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:purchasely_google_example/main.dart'; - -void main() { - testWidgets('Verify Platform version', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that platform version is retrieved. - expect( - find.byWidgetPredicate( - (Widget widget) => widget is Text && - widget.data!.startsWith('Running on:'), - ), - findsOneWidget, - ); - }); -} diff --git a/purchasely_google/pubspec.yaml b/purchasely_google/pubspec.yaml index 11aaa1c..df54173 100644 --- a/purchasely_google/pubspec.yaml +++ b/purchasely_google/pubspec.yaml @@ -1,6 +1,6 @@ name: purchasely_google description: Purchasely Google Play Billing dependency for Android -version: 4.5.0 +version: 4.5.1 homepage: https://www.purchasely.com/ environment: @@ -11,7 +11,7 @@ dependencies: flutter: sdk: flutter plugin_platform_interface: ^2.0.2 -purchasely_flutter: ^4.5.0 +purchasely_flutter: ^4.5.1 dev_dependencies: flutter_test: diff --git a/purchasely_google/test/purchasely_google_method_channel_test.dart b/purchasely_google/test/purchasely_google_method_channel_test.dart deleted file mode 100644 index bbef6c4..0000000 --- a/purchasely_google/test/purchasely_google_method_channel_test.dart +++ /dev/null @@ -1,24 +0,0 @@ -import 'package:flutter/services.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:purchasely_google/purchasely_google_method_channel.dart'; - -void main() { - MethodChannelPurchaselyGoogle platform = MethodChannelPurchaselyGoogle(); - const MethodChannel channel = MethodChannel('purchasely_google'); - - TestWidgetsFlutterBinding.ensureInitialized(); - - setUp(() { - channel.setMockMethodCallHandler((MethodCall methodCall) async { - return '42'; - }); - }); - - tearDown(() { - channel.setMockMethodCallHandler(null); - }); - - test('getPlatformVersion', () async { - expect(await platform.getPlatformVersion(), '42'); - }); -} diff --git a/purchasely_google/test/purchasely_google_test.dart b/purchasely_google/test/purchasely_google_test.dart deleted file mode 100644 index 310bd34..0000000 --- a/purchasely_google/test/purchasely_google_test.dart +++ /dev/null @@ -1,29 +0,0 @@ -import 'package:flutter_test/flutter_test.dart'; -import 'package:purchasely_google/purchasely_google.dart'; -import 'package:purchasely_google/purchasely_google_platform_interface.dart'; -import 'package:purchasely_google/purchasely_google_method_channel.dart'; -import 'package:plugin_platform_interface/plugin_platform_interface.dart'; - -class MockPurchaselyGooglePlatform - with MockPlatformInterfaceMixin - implements PurchaselyGooglePlatform { - - @override - Future getPlatformVersion() => Future.value('42'); -} - -void main() { - final PurchaselyGooglePlatform initialPlatform = PurchaselyGooglePlatform.instance; - - test('$MethodChannelPurchaselyGoogle is the default instance', () { - expect(initialPlatform, isInstanceOf()); - }); - - test('getPlatformVersion', () async { - PurchaselyGoogle purchaselyGooglePlugin = PurchaselyGoogle(); - MockPurchaselyGooglePlatform fakePlatform = MockPurchaselyGooglePlatform(); - PurchaselyGooglePlatform.instance = fakePlatform; - - expect(await purchaselyGooglePlugin.getPlatformVersion(), '42'); - }); -}