From 25f309ef3de257ffbd57d7be189083cb9f76a3cb Mon Sep 17 00:00:00 2001 From: cb-palanim Date: Fri, 26 Jul 2024 13:39:13 +0530 Subject: [PATCH] Changing ascii to utf 8 --- CHANGELOG.md | 4 ++++ README.md | 2 +- android/build.gradle | 2 +- ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift | 16 ++++++++-------- ios/chargebee_flutter.podspec | 2 +- pubspec.yaml | 2 +- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc7b5ac..75b459c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0-beta.7 +Chore +* UTF8 support + ## 1.0.0-beta.6 Chore * Compatible with AGP 8 diff --git a/README.md b/README.md index a2c8aa5..b7145cc 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ To use Chargebee SDK in your Flutter app, follow these steps: ``` dart dependencies: - chargebee_flutter: ^1.0.0-beta.6 + chargebee_flutter: ^1.0.0-beta.7 ``` 2. Install dependency. diff --git a/android/build.gradle b/android/build.gradle index 2edd25b..926d49c 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ group 'com.chargebee.flutter.sdk' -version '1.0.0-beta.6' +version '1.0.0-beta.7' buildscript { ext.kotlin_version = '1.6.0' diff --git a/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift b/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift index 97423c1..581fccf 100644 --- a/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift +++ b/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift @@ -78,7 +78,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject:dict, options: []) { if let jsonString = String(data: data, - encoding: .ascii) { + encoding: .utf8) { _result(jsonString) } }else { @@ -120,7 +120,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject:dict, options: []) { if let jsonString = String(data: data, - encoding: .ascii) { + encoding: .utf8) { _result(jsonString) } }else { @@ -152,7 +152,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject: product.product.toMap(), options: []) { if let jsonString = String(data: theJSONData, - encoding: .ascii) { + encoding: .utf8) { array.append(jsonString) } } @@ -173,7 +173,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject:dataWrapper.ids, options: []) { if let jsonString = String(data: data, - encoding: .ascii) { + encoding: .utf8) { _result(jsonString) } }else { @@ -196,7 +196,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject:entitlements.list.compactMap { $0.dict }, options: []) { if let jsonString = String(data: data, - encoding: .ascii) { + encoding: .utf8) { _result(jsonString) } }else { @@ -271,7 +271,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject: subscription.toMap(), options: []) { if let jsonString = String(data: theJSONData, - encoding: .ascii) { + encoding: .utf8) { array.append(jsonString) } } @@ -305,7 +305,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject:dict, options: []) { if let jsonString = String(data: data, - encoding: .ascii) { + encoding: .utf8) { _result(jsonString) } }else { @@ -342,7 +342,7 @@ public class SwiftChargebeeFlutterSdkPlugin: NSObject, FlutterPlugin { withJSONObject:dict, options: []) { if let jsonString = String(data: data, - encoding: .ascii) { + encoding: .utf8) { _result(jsonString) } }else { diff --git a/ios/chargebee_flutter.podspec b/ios/chargebee_flutter.podspec index a53439d..783d5e2 100644 --- a/ios/chargebee_flutter.podspec +++ b/ios/chargebee_flutter.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'chargebee_flutter' - s.version = '1.0.0-beta.6' + s.version = '1.0.0-beta.7' s.summary = 'This is the official Software Development Kit (SDK) for Chargebee Flutter.' s.description = <<-DESC A new Flutter plugin. diff --git a/pubspec.yaml b/pubspec.yaml index 5268439..583f01e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: chargebee_flutter description: This is the official Software Development Kit (SDK) for Chargebee Flutter. -version: 1.0.0-beta.6 +version: 1.0.0-beta.7 homepage: 'https://chargebee.com' repository: 'https://github.com/chargebee/chargebee-flutter'