Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
c3dd00a7
提交
c3dd00a7
authored
8月 10, 2018
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add some ios code
上级
d41e0298
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
73 行增加
和
22 行删除
+73
-22
project.pbxproj
example/ios/Runner.xcodeproj/project.pbxproj
+3
-12
AppDelegate.swift
example/ios/Runner/AppDelegate.swift
+1
-1
WechatPluginMethods.swift
example/ios/Runner/WechatPluginMethods.swift
+1
-0
SwiftWechatPlugin.swift
ios/Classes/SwiftWechatPlugin.swift
+11
-2
WeChatHandler.swift
ios/Classes/WeChatHandler.swift
+0
-7
WeChatHandler.swift
ios/Classes/src/WeChatHandler.swift
+15
-0
H.swift
ios/Classes/src/config/H.swift
+8
-0
WeChatPluginMethods.swift
ios/Classes/src/config/WeChatPluginMethods.swift
+17
-0
WeChatPluginMethods.temp_caseinsensitive_rename.swift
...fig/WeChatPluginMethods.temp_caseinsensitive_rename.swift
+17
-0
没有找到文件。
example/ios/Runner.xcodeproj/project.pbxproj
浏览文件 @
c3dd00a7
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
CDDC1203211AD82D0091FA91
/* libz.tbd in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CDDC1202211AD82D0091FA91
/* libz.tbd */
;
};
CDDC1203211AD82D0091FA91
/* libz.tbd in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CDDC1202211AD82D0091FA91
/* libz.tbd */
;
};
CDDC1205211AD83D0091FA91
/* libsqlite3.tbd in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CDDC1204211AD83D0091FA91
/* libsqlite3.tbd */
;
};
CDDC1205211AD83D0091FA91
/* libsqlite3.tbd in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CDDC1204211AD83D0091FA91
/* libsqlite3.tbd */
;
};
CDDC1207211AD8540091FA91
/* libc++.tbd in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CDDC1206211AD8540091FA91
/* libc++.tbd */
;
};
CDDC1207211AD8540091FA91
/* libc++.tbd in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CDDC1206211AD8540091FA91
/* libc++.tbd */
;
};
CDDC120B211ADE9D0091FA91
/* WechatPluginMethods.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CDDC120A211ADE9D0091FA91
/* WechatPluginMethods.swift */
;
};
CDDC120D211AE6B90091FA91
/* CoreTelephony.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CDDC120C211AE6B90091FA91
/* CoreTelephony.framework */
;
};
CDDC120D211AE6B90091FA91
/* CoreTelephony.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CDDC120C211AE6B90091FA91
/* CoreTelephony.framework */
;
};
/* End PBXBuildFile section */
/* End PBXBuildFile section */
...
@@ -68,7 +67,6 @@
...
@@ -68,7 +67,6 @@
CDDC1202211AD82D0091FA91
/* libz.tbd */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"sourcecode.text-based-dylib-definition"
;
name
=
libz.tbd
;
path
=
usr/lib/libz.tbd
;
sourceTree
=
SDKROOT
;
};
CDDC1202211AD82D0091FA91
/* libz.tbd */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"sourcecode.text-based-dylib-definition"
;
name
=
libz.tbd
;
path
=
usr/lib/libz.tbd
;
sourceTree
=
SDKROOT
;
};
CDDC1204211AD83D0091FA91
/* libsqlite3.tbd */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"sourcecode.text-based-dylib-definition"
;
name
=
libsqlite3.tbd
;
path
=
usr/lib/libsqlite3.tbd
;
sourceTree
=
SDKROOT
;
};
CDDC1204211AD83D0091FA91
/* libsqlite3.tbd */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"sourcecode.text-based-dylib-definition"
;
name
=
libsqlite3.tbd
;
path
=
usr/lib/libsqlite3.tbd
;
sourceTree
=
SDKROOT
;
};
CDDC1206211AD8540091FA91
/* libc++.tbd */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"sourcecode.text-based-dylib-definition"
;
name
=
"libc++.tbd"
;
path
=
"usr/lib/libc++.tbd"
;
sourceTree
=
SDKROOT
;
};
CDDC1206211AD8540091FA91
/* libc++.tbd */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"sourcecode.text-based-dylib-definition"
;
name
=
"libc++.tbd"
;
path
=
"usr/lib/libc++.tbd"
;
sourceTree
=
SDKROOT
;
};
CDDC120A211ADE9D0091FA91
/* WechatPluginMethods.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
WechatPluginMethods.swift
;
sourceTree
=
"<group>"
;
};
CDDC120C211AE6B90091FA91
/* CoreTelephony.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
CoreTelephony.framework
;
path
=
System/Library/Frameworks/CoreTelephony.framework
;
sourceTree
=
SDKROOT
;
};
CDDC120C211AE6B90091FA91
/* CoreTelephony.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
CoreTelephony.framework
;
path
=
System/Library/Frameworks/CoreTelephony.framework
;
sourceTree
=
SDKROOT
;
};
/* End PBXFileReference section */
/* End PBXFileReference section */
...
@@ -148,7 +146,6 @@
...
@@ -148,7 +146,6 @@
97C146F01CF9000F007C117D
/* Runner */
=
{
97C146F01CF9000F007C117D
/* Runner */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
CDDC1209211ADE320091FA91
/* Wechat Plugin */
,
CD425B48211AD23300BF14A6
/* libWeChatSDK.a */
,
CD425B48211AD23300BF14A6
/* libWeChatSDK.a */
,
CD425B49211AD23300BF14A6
/* WXApi.h */
,
CD425B49211AD23300BF14A6
/* WXApi.h */
,
CD425B47211AD23300BF14A6
/* WXApiObject.h */
,
CD425B47211AD23300BF14A6
/* WXApiObject.h */
,
...
@@ -172,14 +169,6 @@
...
@@ -172,14 +169,6 @@
name
=
"Supporting Files"
;
name
=
"Supporting Files"
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
};
};
CDDC1209211ADE320091FA91
/* Wechat Plugin */
=
{
isa
=
PBXGroup
;
children
=
(
CDDC120A211ADE9D0091FA91
/* WechatPluginMethods.swift */
,
);
name
=
"Wechat Plugin"
;
sourceTree
=
"<group>"
;
};
/* End PBXGroup section */
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
/* Begin PBXNativeTarget section */
...
@@ -216,6 +205,7 @@
...
@@ -216,6 +205,7 @@
TargetAttributes
=
{
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
97C146ED1CF9000F007C117D
=
{
CreatedOnToolsVersion
=
7.3.1
;
CreatedOnToolsVersion
=
7.3.1
;
DevelopmentTeam
=
8JJXUFV6F7
;
LastSwiftMigration
=
0910
;
LastSwiftMigration
=
0910
;
};
};
};
};
...
@@ -329,7 +319,6 @@
...
@@ -329,7 +319,6 @@
files
=
(
files
=
(
74858FAF1ED2DC5600515810
/* AppDelegate.swift in Sources */
,
74858FAF1ED2DC5600515810
/* AppDelegate.swift in Sources */
,
1498D2341E8E89220040F4C2
/* GeneratedPluginRegistrant.m in Sources */
,
1498D2341E8E89220040F4C2
/* GeneratedPluginRegistrant.m in Sources */
,
CDDC120B211ADE9D0091FA91
/* WechatPluginMethods.swift in Sources */
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
};
};
...
@@ -469,6 +458,7 @@
...
@@ -469,6 +458,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
8JJXUFV6F7
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
...
@@ -497,6 +487,7 @@
...
@@ -497,6 +487,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
8JJXUFV6F7
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
...
...
example/ios/Runner/AppDelegate.swift
浏览文件 @
c3dd00a7
...
@@ -10,7 +10,7 @@ import Flutter
...
@@ -10,7 +10,7 @@ import Flutter
GeneratedPluginRegistrant
.
register
(
with
:
self
)
GeneratedPluginRegistrant
.
register
(
with
:
self
)
return
super
.
application
(
application
,
didFinishLaunchingWithOptions
:
launchOptions
)
return
super
.
application
(
application
,
didFinishLaunchingWithOptions
:
launchOptions
)
}
}
}
}
example/ios/Runner/WechatPluginMethods.swift
浏览文件 @
c3dd00a7
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
import
Foundation
import
Foundation
struct
WechatPluginMethods
{
struct
WechatPluginMethods
{
public
static
let
SHARE_TEXT
=
"share_text"
;
public
static
let
SHARE_TEXT
=
"share_text"
;
public
static
let
SHARE_IMAGE
=
"share_image"
;
public
static
let
SHARE_IMAGE
=
"share_image"
;
...
...
ios/Classes/SwiftWechatPlugin.swift
浏览文件 @
c3dd00a7
import
Flutter
import
Flutter
import
UIKit
import
UIKit
public
class
SwiftWechatPlugin
:
NSObject
,
FlutterPlugin
{
public
class
SwiftWechatPlugin
:
NSObject
,
FlutterPlugin
{
public
static
func
register
(
with
registrar
:
FlutterPluginRegistrar
)
{
public
static
func
register
(
with
registrar
:
FlutterPluginRegistrar
)
{
let
channel
=
FlutterMethodChannel
(
name
:
"wechat_plugin"
,
binaryMessenger
:
registrar
.
messenger
())
let
channel
=
FlutterMethodChannel
(
name
:
"wechat_plugin"
,
binaryMessenger
:
registrar
.
messenger
())
...
@@ -9,6 +10,14 @@ public class SwiftWechatPlugin: NSObject, FlutterPlugin {
...
@@ -9,6 +10,14 @@ public class SwiftWechatPlugin: NSObject, FlutterPlugin {
}
}
public
func
handle
(
_
call
:
FlutterMethodCall
,
result
:
@escaping
FlutterResult
)
{
public
func
handle
(
_
call
:
FlutterMethodCall
,
result
:
@escaping
FlutterResult
)
{
result
(
"iOS "
+
UIDevice
.
current
.
systemVersion
)
switch
call
.
method
{
case
WeChatPluginMethods
.
SHARE_TEXT
:
print
(
"hh"
)
break
;
default
:
print
(
"hh"
)
}
}
}
}
}
ios/Classes/WeChatHandler.swift
deleted
100644 → 0
浏览文件 @
d41e0298
public
class
WeChatHandler
{
}
\ No newline at end of file
ios/Classes/src/WeChatHandler.swift
0 → 100644
浏览文件 @
c3dd00a7
import
Flutter
public
class
WeChatHandler
{
static
let
instance
:
WeChatHandler
=
WeChatHandler
()
public
func
shareText
(
call
:
FlutterMethodCall
){
}
}
ios/Classes/src/config/H.swift
0 → 100644
浏览文件 @
c3dd00a7
//
// H.swift
// Pods-Runner
//
// Created by mo on 2018/8/10.
//
import
Foundation
ios/Classes/src/config/WeChatPluginMethods.swift
0 → 100644
浏览文件 @
c3dd00a7
//
// WeChatPluginMethods.swift
// Pods-Runner
//
// Created by mo on 2018/8/10.
//
import
Foundation
public
class
WeChatPluginMethods
{
public
static
let
SHARE_TEXT
=
"shareText"
;
public
static
let
SHARE_IMAGE
=
"shareImage"
;
public
static
let
SHARE_MUSIC
=
"shareMusic"
;
public
static
let
SHARE_VIDEO
=
"shareVideo"
;
public
static
let
SHARE_WEBSITE
=
"shareWebsite"
;
}
ios/Classes/src/config/WeChatPluginMethods.temp_caseinsensitive_rename.swift
0 → 100644
浏览文件 @
c3dd00a7
//
// WechatPluginMethods.swift
// Pods-Runner
//
// Created by mo on 2018/8/10.
//
import
Foundation
public
struct
WeChatPluginMethods
{
public
static
let
SHARE_TEXT
=
"shareText"
;
public
static
let
SHARE_IMAGE
=
"shareImage"
;
public
static
let
SHARE_MUSIC
=
"shareMusic"
;
public
static
let
SHARE_VIDEO
=
"shareVideo"
;
public
static
let
SHARE_WEBSITE
=
"shareWebsite"
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论