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
5cb044c2
Commit
5cb044c2
authored
Oct 16, 2021
by
汪林玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
e8c6c1ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
47 deletions
+43
-47
example/pubspec.lock
example/pubspec.lock
+20
-20
lib/jdsdk.dart
lib/jdsdk.dart
+2
-3
pubspec.lock
pubspec.lock
+19
-19
pubspec.yaml
pubspec.yaml
+2
-5
No files found.
example/pubspec.lock
View file @
5cb044c2
...
...
@@ -7,42 +7,42 @@ packages:
name: async
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.
5.0-nullsafety
.1"
version: "2.
8
.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.0
-nullsafety.1
"
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0
-nullsafety.3
"
version: "1.1.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.
2.0-nullsafety
.1"
version: "1.
3
.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0
-nullsafety.1
"
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.15.0
-nullsafety.3
"
version: "1.15.0"
cupertino_icons:
dependency: "direct main"
description:
...
...
@@ -56,7 +56,7 @@ packages:
name: fake_async
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.2.0
-nullsafety.1
"
version: "1.2.0"
flutter:
dependency: "direct main"
description: flutter
...
...
@@ -73,28 +73,28 @@ packages:
path: ".."
relative: true
source: path
version: "
0.0.1
"
version: "
1.0.0
"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.12.10
-nullsafety.1
"
version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.
3.0-nullsafety.3
"
version: "1.
7.0
"
path:
dependency: transitive
description:
name: path
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.8.0
-nullsafety.1
"
version: "1.8.0"
sky_engine:
dependency: transitive
description: flutter
...
...
@@ -106,55 +106,55 @@ packages:
name: source_span
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.8.
0-nullsafety.2
"
version: "1.8.
1
"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.10.0
-nullsafety.1
"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.0
-nullsafety.1
"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0
-nullsafety.1
"
version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.2.0
-nullsafety.1
"
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.
2.19-nullsafety
.2"
version: "0.
4
.2"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.0
-nullsafety.3
"
version: "1.3.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.0
-nullsafety.3
"
version: "2.1.0"
sdks:
dart: ">=2.1
0.0-110 <2.11
.0"
dart: ">=2.1
2.0 <3.0
.0"
lib/jdsdk.dart
View file @
5cb044c2
import
'dart:async'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/services.dart'
;
class
Jdsdk
{
...
...
@@ -10,7 +9,7 @@ class Jdsdk {
/// [appKey] appKey
/// [appSecret] app密钥
///
static
Future
<
Map
<
String
,
dynamic
>>
init
({
@required
String
appKey
,
@
required
String
appSecret
})
async
{
static
Future
<
Map
<
String
,
dynamic
>>
init
({
required
String
appKey
,
required
String
appSecret
})
async
{
final
Map
<
dynamic
,
dynamic
>
version
=
await
_channel
.
invokeMethod
(
'init'
,
{
"appKey"
:
appKey
,
"appSecret"
:
appSecret
});
return
Map
<
String
,
dynamic
>.
from
(
version
);
}
...
...
@@ -19,7 +18,7 @@ class Jdsdk {
/// 打开京东的任意URL
/// [url] 待打开的url地址
///
static
Future
<
bool
>
openUrl
({
@
required
String
url
})
async
{
static
Future
<
bool
>
openUrl
({
required
String
url
})
async
{
final
bool
version
=
await
_channel
.
invokeMethod
(
'openUrl'
,
{
"url"
:
url
});
return
version
;
}
...
...
pubspec.lock
View file @
5cb044c2
...
...
@@ -7,49 +7,49 @@ packages:
name: async
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.
5.0-nullsafety
.1"
version: "2.
8
.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.0
-nullsafety.1
"
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0
-nullsafety.3
"
version: "1.1.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.
2.0-nullsafety
.1"
version: "1.
3
.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0
-nullsafety.1
"
version: "1.1.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.15.0
-nullsafety.3
"
version: "1.15.0"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.2.0
-nullsafety.1
"
version: "1.2.0"
flutter:
dependency: "direct main"
description: flutter
...
...
@@ -66,21 +66,21 @@ packages:
name: matcher
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.12.10
-nullsafety.1
"
version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.
3.0-nullsafety.3
"
version: "1.
7.0
"
path:
dependency: transitive
description:
name: path
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.8.0
-nullsafety.1
"
version: "1.8.0"
sky_engine:
dependency: transitive
description: flutter
...
...
@@ -92,55 +92,55 @@ packages:
name: source_span
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.8.
0-nullsafety.2
"
version: "1.8.
1
"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.10.0
-nullsafety.1
"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.0
-nullsafety.1
"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0
-nullsafety.1
"
version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.2.0
-nullsafety.1
"
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.
2.19-nullsafety
.2"
version: "0.
4
.2"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.0
-nullsafety.3
"
version: "1.3.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.0
-nullsafety.3
"
version: "2.1.0"
sdks:
dart: ">=2.1
0.0-110 <2.11
.0"
dart: ">=2.1
2.0 <3.0
.0"
pubspec.yaml
View file @
5cb044c2
name
:
jd_sdk
description
:
The implementation of Jingdong SDK on Flutter, through which you can realize the wake-up Jingdong app to open any URL of Jingdong, including product details and other functions.
version
:
0.0.1
author
:
wuchaowen <chaowen1110@gmail.com>
version
:
1.0.0
homepage
:
https://github.com/selfimgr/flutter_jdsdk.git
publish_to
:
'
none'
environment
:
sdk
:
"
>=2.8.0
<3.0.0"
sdk
:
'
>=2.12.0
<3.0.0'
dependencies
:
flutter
:
...
...
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