Skip to content

Commit 7a96b32

Browse files
author
xuyingjun
committed
Revert: refactor: update project
1 parent 3f4e8d5 commit 7a96b32

7 files changed

+19
-99
lines changed

example/ios/Flutter/Debug.xcconfig

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
21
#include "Generated.xcconfig"

example/ios/Flutter/Release.xcconfig

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
21
#include "Generated.xcconfig"
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
22
# This is a generated file; do not edit or check into version control.
3-
export "FLUTTER_ROOT=/Users/wanwu/program/flutter"
4-
export "FLUTTER_APPLICATION_PATH=/Users/wanwu/Desktop/code/yy/test/flutter_custom_dialog/example"
5-
export "FLUTTER_TARGET=lib/main.dart"
3+
export "FLUTTER_ROOT=C:\FlutterSDK\flutter"
4+
export "FLUTTER_APPLICATION_PATH=C:\YYLive4-OpenSource\flutter-custom-dialog\example"
5+
export "FLUTTER_TARGET=lib\main.dart"
66
export "FLUTTER_BUILD_DIR=build"
7-
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
8-
export "FLUTTER_FRAMEWORK_DIR=/Users/wanwu/program/flutter/bin/cache/artifacts/engine/ios"
7+
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
8+
export "FLUTTER_FRAMEWORK_DIR=C:\FlutterSDK\flutter\bin\cache\artifacts\engine\ios"

example/ios/Podfile

-75
This file was deleted.

ios/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ Icon?
3434
.tags*
3535

3636
/Flutter/Generated.xcconfig
37-
/Flutter/flutter_export_environment.sh
+14-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
#import "FlutterCustomDialogPlugin.h"
2-
#import <flutter_custom_dialog/flutter_custom_dialog-Swift.h>
32

43
@implementation FlutterCustomDialogPlugin
54
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
6-
[SwiftFlutterCustomDialogPlugin registerWithRegistrar:registrar];
5+
FlutterMethodChannel* channel = [FlutterMethodChannel
6+
methodChannelWithName:@"flutter_custom_dialog"
7+
binaryMessenger:[registrar messenger]];
8+
FlutterCustomDialogPlugin* instance = [[FlutterCustomDialogPlugin alloc] init];
9+
[registrar addMethodCallDelegate:instance channel:channel];
710
}
11+
12+
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
13+
if ([@"getPlatformVersion" isEqualToString:call.method]) {
14+
result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
15+
} else {
16+
result(FlutterMethodNotImplemented);
17+
}
18+
}
19+
820
@end

ios/Classes/SwiftFlutterCustomDialogPlugin.swift

-14
This file was deleted.

0 commit comments

Comments
 (0)