forked from flutter/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Initial iOS implementation for webview_flutter. (flutter#890)"
This reverts commit eca232c.
- Loading branch information
1 parent
1b3396c
commit 27601a9
Showing
7 changed files
with
24 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
packages/webview_flutter/ios/Classes/WebViewFlutterPlugin.m
This file was deleted.
Oops, something went wrong.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
packages/webview_flutter/ios/Classes/WebviewFlutterPlugin.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2018 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#import "WebviewFlutterPlugin.h" | ||
|
||
@implementation FLTWebviewFlutterPlugin | ||
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar { | ||
FlutterMethodChannel* channel = | ||
[FlutterMethodChannel methodChannelWithName:@"webview_flutter" | ||
binaryMessenger:[registrar messenger]]; | ||
FLTWebviewFlutterPlugin* instance = [[FLTWebviewFlutterPlugin alloc] init]; | ||
[registrar addMethodCallDelegate:instance channel:channel]; | ||
} | ||
|
||
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { | ||
if ([@"getPlatformVersion" isEqualToString:call.method]) { | ||
result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]); | ||
} else { | ||
result(FlutterMethodNotImplemented); | ||
} | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters