Skip to content

Commit

Permalink
Merge pull request #61 from razorpay/module_stability
Browse files Browse the repository at this point in the history
Updated changes around Module stability related to iOS and Swift.
  • Loading branch information
Nautiyalsachin committed Apr 8, 2020
2 parents f643d83 + 8469618 commit fbb5a2b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.3
- Updated podspec for without the version so it will always point to the latest version.
- Updated changes around Module stability related to iOS and Swift.

## 1.1.2
- Updated Podspec to use `razorpay-pod ~> 1.1.4`

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This plugin is available on Pub: [https://pub.dev/packages/razorpay_flutter](htt
Add this to `dependencies` in your app's `pubspec.yml`

```yaml
razorpay_flutter: ^1.1.1
razorpay_flutter: ^1.1.3
```

**Note for Android**: Make sure that the minimum API level for your app is 19 or higher.
Expand Down
7 changes: 4 additions & 3 deletions ios/Classes/RazorpayDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ public class RazorpayDelegate: NSObject, RazorpayPaymentCompletionProtocolWithDa

let key = options["key"] as? String

let razorpay = Razorpay.initWithKey(key ?? "", andDelegateWithData: self)
let razorpay = RazorpayCheckout.initWithKey(key ?? "", andDelegateWithData: self)
razorpay.setExternalWalletSelectionDelegate(self)

var options = options
options["integration"] = "flutter"
options["FRAMEWORK"] = "flutter"
razorpay.open(options)

}

public func resync(result: @escaping FlutterResult) {
Expand Down
5 changes: 2 additions & 3 deletions ios/razorpay_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
Pod::Spec.new do |s|
s.name = 'razorpay_flutter'
s.version = '1.1.1'
s.version = '1.1.3'
s.summary = 'Flutter plugin for Razorpay SDK.'
s.description = 'Flutter plugin for Razorpay SDK.'
s.homepage = 'https://github.com/razorpay/razorpay-flutter'
Expand All @@ -13,8 +13,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'razorpay-pod', '~> 1.1.4'
s.dependency 'razorpay-pod'

s.ios.deployment_target = '10.0'
s.swift_version = '5.0'
end
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: razorpay_flutter
description: Flutter plugin for Razorpay SDK. To know more about Razorpay, visit http://razorpay.com.
version: 1.1.2
version: 1.1.3
author: Chintan Acharya <chintan.acharya@razorpay.com>
homepage: https://github.com/razorpay/razorpay-flutter

Expand Down

0 comments on commit fbb5a2b

Please sign in to comment.