Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flutter_plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林生雨
flutter_plugin
Commits
32b7d47b
Commit
32b7d47b
authored
Nov 25, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
d1da53f0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
83 additions
and
19 deletions
+83
-19
workspace.xml
.idea/workspace.xml
+0
-0
Flutter.podspec
example/ios/Flutter/Flutter.podspec
+18
-0
flutter_export_environment.sh
example/ios/Flutter/flutter_export_environment.sh
+3
-2
Podfile.lock
example/ios/Podfile.lock
+1
-1
pubspec.lock
example/pubspec.lock
+8
-8
pubspec.yaml
example/pubspec.yaml
+1
-1
gengmei_flutter_plugin.iml
gengmei_flutter_plugin.iml
+0
-1
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+1
-4
pubspec.lock
pubspec.lock
+51
-2
No files found.
.idea/workspace.xml
View file @
32b7d47b
This diff is collapsed.
Click to expand it.
example/ios/Flutter/Flutter.podspec
0 → 100644
View file @
32b7d47b
#
# NOTE: This podspec is NOT to be published. It is only used as a local source!
#
Pod
::
Spec
.
new
do
|
s
|
s
.
name
=
'Flutter'
s
.
version
=
'1.0.0'
s
.
summary
=
'High-performance, high-fidelity mobile apps.'
s
.
description
=
<<-
DESC
Flutter provides an easy and productive way to build and deploy high-performance mobile apps for Android and iOS.
DESC
s
.
homepage
=
'https://flutter.io'
s
.
license
=
{
:type
=>
'MIT'
}
s
.
author
=
{
'Flutter Dev Team'
=>
'flutter-dev@googlegroups.com'
}
s
.
source
=
{
:git
=>
'https://github.com/flutter/engine'
,
:tag
=>
s
.
version
.
to_s
}
s
.
ios
.
deployment_target
=
'8.0'
s
.
vendored_frameworks
=
'Flutter.framework'
end
example/ios/Flutter/flutter_export_environment.sh
View file @
32b7d47b
...
...
@@ -2,8 +2,9 @@
# This is a generated file; do not edit or check into version control.
export
"FLUTTER_ROOT=/Users/apple/Downloads/flutter"
export
"FLUTTER_APPLICATION_PATH=/Users/apple/lsy/gengmei_flutter_plugin/example"
export
"FLUTTER_TARGET=
/Users/apple/lsy/gengmei_flutter_plugin/example/
lib/main.dart"
export
"FLUTTER_TARGET=lib/main.dart"
export
"FLUTTER_BUILD_DIR=build"
export
"SYMROOT=
${
SOURCE_ROOT
}
/../build/ios"
export
"FLUTTER_FRAMEWORK_DIR=/Users/apple/Downloads/flutter/bin/cache/artifacts/engine/ios"
export
"TRACK_WIDGET_CREATION=true"
export
"FLUTTER_BUILD_NAME=1.0.0"
export
"FLUTTER_BUILD_NUMBER=1"
example/ios/Podfile.lock
View file @
32b7d47b
...
...
@@ -14,7 +14,7 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/gengmei_flutter_plugin/ios"
SPEC CHECKSUMS:
Flutter:
0e3d915762c693b495b44d77113d4970485de6ec
Flutter:
58dd7d1b27887414a370fcccb9e645c08ffd7a6a
gengmei_flutter_plugin: 9461e8644c06c4a0e38292ddcca1cc55e6ac6156
PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932
...
...
example/pubspec.lock
View file @
32b7d47b
...
...
@@ -7,14 +7,14 @@ packages:
name: async
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.
3
.0"
version: "2.
2
.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.
5
"
version: "1.0.
4
"
charcode:
dependency: transitive
description:
...
...
@@ -66,35 +66,35 @@ packages:
name: meta
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.
7
"
version: "1.1.
6
"
path:
dependency: transitive
description:
name: path
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.6.
4
"
version: "1.6.
2
"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.
8.0+1
"
version: "1.
7.0
"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.
5
"
version: "2.0.
3
"
rxdart:
dependency: "direct main"
description:
name: rxdart
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.22.
4
"
version: "0.22.
6
"
sky_engine:
dependency: transitive
description: flutter
...
...
@@ -127,7 +127,7 @@ packages:
name: string_scanner
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.
5
"
version: "1.0.
4
"
term_glyph:
dependency: transitive
description:
...
...
example/pubspec.yaml
View file @
32b7d47b
...
...
@@ -12,7 +12,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons
:
^0.1.2
rxdart
:
^0.22.0
#链式编程
rxdart
:
^0.22.0
dev_dependencies
:
flutter_test
:
...
...
gengmei_flutter_plugin.iml
View file @
32b7d47b
...
...
@@ -17,7 +17,6 @@
<excludeFolder
url=
"file://$MODULE_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/example/.dart_tool"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/example/.pub"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/example/build"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/example/ios/Flutter/App.framework/flutter_assets/packages"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/example/ios/Flutter/App.framework/flutter_assets/packages"
/>
</content>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
...
...
ios/Classes/GengmeiFlutterPlugin.m
View file @
32b7d47b
...
...
@@ -104,9 +104,7 @@ NSString *cacheDirectory;
AVAuthorizationStatus
authStatus
=
[
AVCaptureDevice
authorizationStatusForMediaType
:
mediaType
];
//读取设备授
if
(
authStatus
==
AVAuthorizationStatusAuthorized
){
NSLog
(
@"相机可用"
);
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[
self
nativeCamera
];
});
}
else
if
(
authStatus
==
AVAuthorizationStatusRestricted
||
authStatus
==
AVAuthorizationStatusDenied
){
NSString
*
errorStr
=
@"应用相机权限受限,请在iPhone的“设置-隐私-相机”选项中,允许好享玩访问你的相机。"
;
...
...
@@ -115,9 +113,7 @@ NSString *cacheDirectory;
}
else
{
[
AVCaptureDevice
requestAccessForMediaType
:
AVMediaTypeVideo
completionHandler
:
^
(
BOOL
granted
)
{
if
(
granted
){
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[
self
nativeCamera
];
});
}
else
{
NSString
*
errorStr
=
@"应用相机权限受限,请在iPhone的“设置-隐私-相册”选项中,允许好享玩访问你的相册。"
;
[
self
popWindow
:
errorStr
];
...
...
@@ -576,6 +572,7 @@ NSString *cacheDirectory;
-
(
void
)
imagePickerController
:
(
UIImagePickerController
*
)
picker
didFinishPickingMediaWithInfo
:
(
NSDictionary
*
)
info
{
NSLog
(
@"imagePickerController"
);
UIImage
*
image
=
[
info
objectForKey
:
UIImagePickerControllerOriginalImage
];
UIImageWriteToSavedPhotosAlbum
(
image
,
self
,
@selector
(
imageSavedToPhotosAlbum
:
didFinishSavingWithError
:
contextInfo
:
),
nil
);
[
picker
dismissViewControllerAnimated
:
YES
completion
:
nil
];
...
...
pubspec.lock
View file @
32b7d47b
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
archive:
dependency: transitive
description:
name: archive
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.10"
args:
dependency: transitive
description:
name: args
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.5.2"
async:
dependency: transitive
description:
...
...
@@ -29,6 +43,20 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.14.11"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.1"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.3"
flutter:
dependency: "direct main"
description: flutter
...
...
@@ -39,6 +67,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
image:
dependency: transitive
description:
name: image
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.4"
matcher:
dependency: transitive
description:
...
...
@@ -52,7 +87,7 @@ packages:
name: meta
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.
7
"
version: "1.1.
8
"
path:
dependency: transitive
description:
...
...
@@ -67,6 +102,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.8.0+1"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.4.0"
quiver:
dependency: transitive
description:
...
...
@@ -135,5 +177,12 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.8"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.flutter-io.cn"
source: hosted
version: "3.5.0"
sdks:
dart: ">=2.
2.2
<3.0.0"
dart: ">=2.
4.0
<3.0.0"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment