diff --git a/CHANGELOG.md b/CHANGELOG.md index 0839bf2..edfc08f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.5 +Chore +* UTF8 support + ## 0.4.4 Chore * Compatible with AGP 8 diff --git a/README.md b/README.md index 184e167..570941f 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ To use Chargebee SDK in your Flutter app, follow these steps: ``` dart dependencies: - chargebee_flutter: ^0.4.4 + chargebee_flutter: ^0.4.5 ``` 2. Install dependency. diff --git a/android/build.gradle b/android/build.gradle index ec9e0f0..62df9f5 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ group 'com.chargebee.flutter.sdk' -version '0.4.4' +version '0.4.5' buildscript { ext.kotlin_version = '1.6.0' diff --git a/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift b/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift index e033889..581fccf 100644 --- a/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift +++ b/ios/Classes/SwiftChargebeeFlutterSdkPlugin.swift @@ -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 0f2d3aa..986a256 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 = '0.4.4' + s.version = '0.4.5' 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 57ea354..39f0d35 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: 0.4.4 +version: 0.4.5 homepage: 'https://chargebee.com' repository: 'https://github.com/chargebee/chargebee-flutter'