Skip to content

Commit

Permalink
Inject extension js code bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeroYang committed Aug 14, 2020
1 parent 288a1a9 commit f61413f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ios/Flutter/.last_build_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c037ac044b13ecbf47a895de46b54202
21550ad233f9eb1230b6dc6301eb3cf0
6 changes: 3 additions & 3 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 0.9.2;
MARKETING_VERSION = 0.9.3;
PRODUCT_BUNDLE_IDENTIFIER = io.polkawallet.polkawallet;
PRODUCT_NAME = Runner;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -531,7 +531,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 0.9.2;
MARKETING_VERSION = 0.9.3;
PRODUCT_BUNDLE_IDENTIFIER = io.polkawallet.polkawallet;
PRODUCT_NAME = Runner;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -561,7 +561,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
MARKETING_VERSION = 0.9.2;
MARKETING_VERSION = 0.9.3;
PRODUCT_BUNDLE_IDENTIFIER = io.polkawallet.polkawallet;
PRODUCT_NAME = Runner;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down
2 changes: 1 addition & 1 deletion lib/common/consts/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const String cross_chain_transfer_address_laminar =
'5CLaminarAUSDCrossChainTransferxxxxxxxxxxxxxwisu';

/// app versions
const String app_beta_version = '0.9.2-beta.1';
const String app_beta_version = '0.9.3-beta.1';

/// js code versions
const Map<String, int> js_code_version_map = {
Expand Down
8 changes: 2 additions & 6 deletions lib/page/asExtension/dAppWrapperPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class _DAppWrapperPageState extends State<DAppWrapperPage> {
bool _loading = true;

Future<void> _msgHandler(Map msg) async {
print('api called: $msg');
switch (msg['msgType']) {
case 'pub(accounts.list)':
final List<AccountData> ls = widget.store.account.accountList.toList();
Expand Down Expand Up @@ -94,13 +93,10 @@ class _DAppWrapperPageState extends State<DAppWrapperPage> {
},
),
].toSet(),
onPageStarted: (String url) {
print('Page started loading: $url');
print('Inject extension js code...');
_controller.evaluateJavascript(webApi.asExtensionJSCode);
},
onPageFinished: (String url) {
print('Page finished loading: $url');
print('Inject extension js code...');
_controller.evaluateJavascript(webApi.asExtensionJSCode);
setState(() {
_loading = false;
});
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: PolkaWallet made with Flutter.
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.9.2+921
version: 0.9.3+931

environment:
sdk: ">=2.1.0 <3.0.0"
Expand Down

0 comments on commit f61413f

Please sign in to comment.