Skip to content

Commit 43fdab8

Browse files
Merge pull request #47 from Flutterwave/chore/setup-ci
Chore/setup ci
2 parents 4721892 + 0b1dda4 commit 43fdab8

16 files changed

+384
-39
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.0.7] - February, 2023
2+
* Fixed iOS bug where webview couldn't close when close buttons are clicked
3+
* Removed required `name` and `phone number` fields in `Customer` object
4+
15
## [1.0.6] - October, 2022
26
* Fixed bug where transaction gets stuck after redirecting on webview
37
* Fixed iOS build bug by removing inAppBrowser library

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Available features include:
3434

3535
## Installation
3636

37-
1. Add the dependency to your project. In your `pubspec.yaml` file add: `flutterwave_standard: 1.0.5`
37+
1. Add the dependency to your project. In your `pubspec.yaml` file add: `flutterwave_standard: 1.0.7`
3838
2. Run `flutter pub get`
3939

4040

example/ios/Podfile.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,46 @@
11
PODS:
22
- Flutter (1.0.0)
3+
- flutter_inappwebview (0.0.1):
4+
- Flutter
5+
- flutter_inappwebview/Core (= 0.0.1)
6+
- OrderedSet (~> 5.0)
7+
- flutter_inappwebview/Core (0.0.1):
8+
- Flutter
9+
- OrderedSet (~> 5.0)
310
- fluttertoast (0.0.2):
411
- Flutter
512
- Toast
13+
- OrderedSet (5.0.0)
614
- Toast (4.0.0)
715
- webview_flutter_wkwebview (0.0.1):
816
- Flutter
917

1018
DEPENDENCIES:
1119
- Flutter (from `Flutter`)
20+
- flutter_inappwebview (from `.symlinks/plugins/flutter_inappwebview/ios`)
1221
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
1322
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
1423

1524
SPEC REPOS:
1625
trunk:
26+
- OrderedSet
1727
- Toast
1828

1929
EXTERNAL SOURCES:
2030
Flutter:
2131
:path: Flutter
32+
flutter_inappwebview:
33+
:path: ".symlinks/plugins/flutter_inappwebview/ios"
2234
fluttertoast:
2335
:path: ".symlinks/plugins/fluttertoast/ios"
2436
webview_flutter_wkwebview:
2537
:path: ".symlinks/plugins/webview_flutter_wkwebview/ios"
2638

2739
SPEC CHECKSUMS:
2840
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
41+
flutter_inappwebview: bfd58618f49dc62f2676de690fc6dcda1d6c3721
2942
fluttertoast: 6122fa75143e992b1d3470f61000f591a798cc58
43+
OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c
3044
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
3145
webview_flutter_wkwebview: b7e70ef1ddded7e69c796c7390ee74180182971f
3246

example/lib/main.dart

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class MyApp extends StatelessWidget {
1010
@override
1111
Widget build(BuildContext context) {
1212
return MaterialApp(
13+
debugShowCheckedModeBanner: false,
1314
title: 'Flutter Standard Demo',
1415
home: MyHomePage('Flutterwave Standard'),
1516
);
@@ -170,10 +171,7 @@ class _MyHomePageState extends State<MyHomePage> {
170171
}
171172

172173
_handlePaymentInitialization() async {
173-
final Customer customer = Customer(
174-
name: "FLW Developer",
175-
phoneNumber: this.phoneNumberController.text ?? "12345678",
176-
email: "[email protected]");
174+
final Customer customer = Customer(email: "[email protected]");
177175

178176
final Flutterwave flutterwave = Flutterwave(
179177
context: context,
@@ -198,8 +196,7 @@ class _MyHomePageState extends State<MyHomePage> {
198196
}
199197

200198
String getPublicKey() {
201-
if (isTestMode) return "FLWPUBK_TEST--X";
202-
return "FLWPUBK--X";
199+
return "";
203200
}
204201

205202
void _openBottomSheet() {
@@ -248,7 +245,7 @@ class _MyHomePageState extends State<MyHomePage> {
248245
Future<void> showLoading(String message) {
249246
return showDialog(
250247
context: this.context,
251-
barrierDismissible: false,
248+
barrierDismissible: true,
252249
builder: (BuildContext context) {
253250
return AlertDialog(
254251
content: Container(

example/pubspec.lock

Lines changed: 148 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4+
_fe_analyzer_shared:
5+
dependency: transitive
6+
description:
7+
name: _fe_analyzer_shared
8+
url: "https://pub.dartlang.org"
9+
source: hosted
10+
version: "31.0.0"
11+
analyzer:
12+
dependency: transitive
13+
description:
14+
name: analyzer
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "2.8.0"
18+
args:
19+
dependency: transitive
20+
description:
21+
name: args
22+
url: "https://pub.dartlang.org"
23+
source: hosted
24+
version: "2.3.1"
425
async:
526
dependency: transitive
627
description:
@@ -15,6 +36,27 @@ packages:
1536
url: "https://pub.dartlang.org"
1637
source: hosted
1738
version: "2.1.0"
39+
build:
40+
dependency: transitive
41+
description:
42+
name: build
43+
url: "https://pub.dartlang.org"
44+
source: hosted
45+
version: "2.3.1"
46+
built_collection:
47+
dependency: transitive
48+
description:
49+
name: built_collection
50+
url: "https://pub.dartlang.org"
51+
source: hosted
52+
version: "5.1.1"
53+
built_value:
54+
dependency: transitive
55+
description:
56+
name: built_value
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "8.4.3"
1860
characters:
1961
dependency: transitive
2062
description:
@@ -29,20 +71,41 @@ packages:
2971
url: "https://pub.dartlang.org"
3072
source: hosted
3173
version: "1.3.1"
74+
cli_util:
75+
dependency: transitive
76+
description:
77+
name: cli_util
78+
url: "https://pub.dartlang.org"
79+
source: hosted
80+
version: "0.3.5"
3281
clock:
3382
dependency: transitive
3483
description:
3584
name: clock
3685
url: "https://pub.dartlang.org"
3786
source: hosted
3887
version: "1.1.0"
88+
code_builder:
89+
dependency: transitive
90+
description:
91+
name: code_builder
92+
url: "https://pub.dartlang.org"
93+
source: hosted
94+
version: "4.4.0"
3995
collection:
4096
dependency: transitive
4197
description:
4298
name: collection
4399
url: "https://pub.dartlang.org"
44100
source: hosted
45101
version: "1.16.0"
102+
convert:
103+
dependency: transitive
104+
description:
105+
name: convert
106+
url: "https://pub.dartlang.org"
107+
source: hosted
108+
version: "3.1.0"
46109
crypto:
47110
dependency: transitive
48111
description:
@@ -57,18 +120,46 @@ packages:
57120
url: "https://pub.dartlang.org"
58121
source: hosted
59122
version: "0.1.3"
123+
dart_style:
124+
dependency: transitive
125+
description:
126+
name: dart_style
127+
url: "https://pub.dartlang.org"
128+
source: hosted
129+
version: "2.2.1"
60130
fake_async:
61131
dependency: transitive
62132
description:
63133
name: fake_async
64134
url: "https://pub.dartlang.org"
65135
source: hosted
66136
version: "1.3.0"
137+
file:
138+
dependency: transitive
139+
description:
140+
name: file
141+
url: "https://pub.dartlang.org"
142+
source: hosted
143+
version: "6.1.4"
144+
fixnum:
145+
dependency: transitive
146+
description:
147+
name: fixnum
148+
url: "https://pub.dartlang.org"
149+
source: hosted
150+
version: "1.0.1"
67151
flutter:
68152
dependency: "direct main"
69153
description: flutter
70154
source: sdk
71155
version: "0.0.0"
156+
flutter_inappwebview:
157+
dependency: transitive
158+
description:
159+
name: flutter_inappwebview
160+
url: "https://pub.dartlang.org"
161+
source: hosted
162+
version: "5.7.2+3"
72163
flutter_test:
73164
dependency: "direct dev"
74165
description: flutter
@@ -92,7 +183,14 @@ packages:
92183
path: ".."
93184
relative: true
94185
source: path
95-
version: "1.0.6"
186+
version: "1.0.7"
187+
glob:
188+
dependency: transitive
189+
description:
190+
name: glob
191+
url: "https://pub.dartlang.org"
192+
source: hosted
193+
version: "2.1.1"
96194
http:
97195
dependency: transitive
98196
description:
@@ -114,6 +212,13 @@ packages:
114212
url: "https://pub.dartlang.org"
115213
source: hosted
116214
version: "0.6.4"
215+
logging:
216+
dependency: transitive
217+
description:
218+
name: logging
219+
url: "https://pub.dartlang.org"
220+
source: hosted
221+
version: "1.1.0"
117222
matcher:
118223
dependency: transitive
119224
description:
@@ -135,13 +240,27 @@ packages:
135240
url: "https://pub.dartlang.org"
136241
source: hosted
137242
version: "1.7.0"
243+
mockito:
244+
dependency: "direct dev"
245+
description:
246+
name: mockito
247+
url: "https://pub.dartlang.org"
248+
source: hosted
249+
version: "5.0.15"
138250
modal_bottom_sheet:
139251
dependency: transitive
140252
description:
141253
name: modal_bottom_sheet
142254
url: "https://pub.dartlang.org"
143255
source: hosted
144256
version: "2.1.2"
257+
package_config:
258+
dependency: transitive
259+
description:
260+
name: package_config
261+
url: "https://pub.dartlang.org"
262+
source: hosted
263+
version: "2.1.0"
145264
path:
146265
dependency: transitive
147266
description:
@@ -163,11 +282,25 @@ packages:
163282
url: "https://pub.dartlang.org"
164283
source: hosted
165284
version: "2.1.3"
285+
pub_semver:
286+
dependency: transitive
287+
description:
288+
name: pub_semver
289+
url: "https://pub.dartlang.org"
290+
source: hosted
291+
version: "2.1.3"
166292
sky_engine:
167293
dependency: transitive
168294
description: flutter
169295
source: sdk
170296
version: "0.0.99"
297+
source_gen:
298+
dependency: transitive
299+
description:
300+
name: source_gen
301+
url: "https://pub.dartlang.org"
302+
source: hosted
303+
version: "1.2.2"
171304
source_span:
172305
dependency: transitive
173306
description:
@@ -231,6 +364,13 @@ packages:
231364
url: "https://pub.dartlang.org"
232365
source: hosted
233366
version: "2.1.2"
367+
watcher:
368+
dependency: transitive
369+
description:
370+
name: watcher
371+
url: "https://pub.dartlang.org"
372+
source: hosted
373+
version: "1.0.2"
234374
webview_flutter:
235375
dependency: transitive
236376
description:
@@ -259,6 +399,13 @@ packages:
259399
url: "https://pub.dartlang.org"
260400
source: hosted
261401
version: "2.9.5"
402+
yaml:
403+
dependency: transitive
404+
description:
405+
name: yaml
406+
url: "https://pub.dartlang.org"
407+
source: hosted
408+
version: "3.1.1"
262409
sdks:
263410
dart: ">=2.17.0 <3.0.0"
264411
flutter: ">=3.0.0"

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ dependencies:
1111
sdk: flutter
1212
flutterwave_standard:
1313
path: "../"
14-
# flutterwave_standard: ^1.0.4
1514
cupertino_icons: ^0.1.3
1615
uuid: 3.0.4
1716

1817
dev_dependencies:
1918
flutter_test:
2019
sdk: flutter
20+
mockito: 5.0.15
2121
flutter:
2222

2323
uses-material-design: true

lib/core/TransactionCallBack.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import 'package:flutterwave_standard/flutterwave.dart';
2+
13
abstract class TransactionCallBack {
2-
onTransactionSuccess(String id, String txRef);
3-
onTransactionError();
4-
onCancelled();
4+
onTransactionComplete(ChargeResponse? chargeResponse);
55
}

0 commit comments

Comments
 (0)