Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_jdsdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_jdsdk
Commits
1de50ba2
Commit
1de50ba2
authored
Feb 13, 2021
by
xgz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改ios
parent
15ffb230
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
79 deletions
+37
-79
lib/jdsdk.dart
lib/jdsdk.dart
+6
-6
pubspec.lock
pubspec.lock
+31
-73
No files found.
lib/jdsdk.dart
View file @
1de50ba2
import
'dart:async'
;
import
'dart:async'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
class
Jdsdk
{
class
Jdsdk
{
static
const
MethodChannel
_channel
=
static
const
MethodChannel
_channel
=
const
MethodChannel
(
'jdsdk'
);
const
MethodChannel
(
'jdsdk'
);
static
Future
<
String
>
get
platformVersion
async
{
static
Future
<
String
>
get
platformVersion
async
{
final
String
version
=
await
_channel
.
invokeMethod
(
'getPlatformVersion'
);
final
String
version
=
await
_channel
.
invokeMethod
(
'getPlatformVersion'
);
...
@@ -13,14 +11,16 @@ class Jdsdk {
...
@@ -13,14 +11,16 @@ class Jdsdk {
}
}
///初始化sdk
///初始化sdk
static
Future
<
String
>
init
({
@required
String
appKey
,
@required
String
appSecret
})
async
{
static
Future
<
String
>
init
(
final
String
version
=
await
_channel
.
invokeMethod
(
'init'
,{
"appKey"
:
appKey
,
"appSecret"
:
appSecret
});
{
@required
String
appKey
,
@required
String
appSecret
})
async
{
final
String
version
=
await
_channel
.
invokeMethod
(
'init'
,
{
"appKey"
:
appKey
,
"appSecret"
:
appSecret
});
return
version
;
return
version
;
}
}
///打开京东任意url
///打开京东任意url
static
Future
<
String
>
openUrl
({
@required
String
url
})
async
{
static
Future
<
String
>
openUrl
({
@required
String
url
})
async
{
final
String
version
=
await
_channel
.
invokeMethod
(
'openUrl'
,{
"url"
:
url
});
final
String
version
=
await
_channel
.
invokeMethod
(
'openUrl'
,
{
"url"
:
url
});
return
version
;
return
version
;
}
}
}
}
pubspec.lock
View file @
1de50ba2
# Generated by pub
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
packages:
archive:
dependency: transitive
description:
name: archive
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.11"
args:
dependency: transitive
description:
name: args
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.5.2"
async:
async:
dependency: transitive
dependency: transitive
description:
description:
name: async
name: async
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "2.
4.0
"
version: "2.
5.0-nullsafety.1
"
boolean_selector:
boolean_selector:
dependency: transitive
dependency: transitive
description:
description:
name: boolean_selector
name: boolean_selector
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.0.5"
version: "2.1.0-nullsafety.1"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0-nullsafety.3"
charcode:
charcode:
dependency: transitive
dependency: transitive
description:
description:
name: charcode
name: charcode
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.
1.2
"
version: "1.
2.0-nullsafety.1
"
c
ollection
:
c
lock
:
dependency: transitive
dependency: transitive
description:
description:
name: c
ollection
name: c
lock
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.1
4.1
1"
version: "1.1
.0-nullsafety.
1"
co
nvert
:
co
llection
:
dependency: transitive
dependency: transitive
description:
description:
name: co
nvert
name: co
llection
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "
2.1.1
"
version: "
1.15.0-nullsafety.3
"
crypto
:
fake_async
:
dependency: transitive
dependency: transitive
description:
description:
name:
crypto
name:
fake_async
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "
2.1.3
"
version: "
1.2.0-nullsafety.1
"
flutter:
flutter:
dependency: "direct main"
dependency: "direct main"
description: flutter
description: flutter
...
@@ -67,55 +60,27 @@ packages:
...
@@ -67,55 +60,27 @@ packages:
description: flutter
description: flutter
source: sdk
source: sdk
version: "0.0.0"
version: "0.0.0"
image:
dependency: transitive
description:
name: image
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.4"
matcher:
matcher:
dependency: transitive
dependency: transitive
description:
description:
name: matcher
name: matcher
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "0.12.
6
"
version: "0.12.
10-nullsafety.1
"
meta:
meta:
dependency: transitive
dependency: transitive
description:
description:
name: meta
name: meta
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.
1.8
"
version: "1.
3.0-nullsafety.3
"
path:
path:
dependency: transitive
dependency: transitive
description:
description:
name: path
name: path
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.6.4"
version: "1.8.0-nullsafety.1"
pedantic:
dependency: transitive
description:
name: pedantic
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:
name: quiver
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.5"
sky_engine:
sky_engine:
dependency: transitive
dependency: transitive
description: flutter
description: flutter
...
@@ -127,62 +92,55 @@ packages:
...
@@ -127,62 +92,55 @@ packages:
name: source_span
name: source_span
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.
5.5
"
version: "1.
8.0-nullsafety.2
"
stack_trace:
stack_trace:
dependency: transitive
dependency: transitive
description:
description:
name: stack_trace
name: stack_trace
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.
9.3
"
version: "1.
10.0-nullsafety.1
"
stream_channel:
stream_channel:
dependency: transitive
dependency: transitive
description:
description:
name: stream_channel
name: stream_channel
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "2.
0.0
"
version: "2.
1.0-nullsafety.1
"
string_scanner:
string_scanner:
dependency: transitive
dependency: transitive
description:
description:
name: string_scanner
name: string_scanner
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.
0.5
"
version: "1.
1.0-nullsafety.1
"
term_glyph:
term_glyph:
dependency: transitive
dependency: transitive
description:
description:
name: term_glyph
name: term_glyph
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.
1.0
"
version: "1.
2.0-nullsafety.1
"
test_api:
test_api:
dependency: transitive
dependency: transitive
description:
description:
name: test_api
name: test_api
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "0.2.1
1
"
version: "0.2.1
9-nullsafety.2
"
typed_data:
typed_data:
dependency: transitive
dependency: transitive
description:
description:
name: typed_data
name: typed_data
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "1.
1.6
"
version: "1.
3.0-nullsafety.3
"
vector_math:
vector_math:
dependency: transitive
dependency: transitive
description:
description:
name: vector_math
name: vector_math
url: "https://pub.flutter-io.cn"
url: "https://pub.flutter-io.cn"
source: hosted
source: hosted
version: "2.0.8"
version: "2.1.0-nullsafety.3"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.flutter-io.cn"
source: hosted
version: "3.5.0"
sdks:
sdks:
dart: ">=2.
4.0 <3.0
.0"
dart: ">=2.
10.0-110 <2.11
.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