Skip to content

Commit ca1c827

Browse files
author
qingqing.wang
committed
添加github workflows
1 parent 855635c commit ca1c827

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Publish
1717
uses: sakebook/[email protected]
1818
with:
19-
credential: ${{ secrets.CREDENTIAL_JSON }}
19+
credential: ${{ secrets.CREDENTIAL_JSON_JPUSH }}
2020
flutter_package: false
2121
skip_test: true
2222
dry_run: false

example/lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class MyApp extends StatefulWidget {
1414
class _MyAppState extends State<MyApp> {
1515
String debugLable = 'Unknown';
1616
final JPush jpush = new JPush();
17+
1718
@override
1819
void initState() {
1920
super.initState();
@@ -92,7 +93,7 @@ class _MyAppState extends State<MyApp> {
9293
Container(
9394
margin: EdgeInsets.fromLTRB(10, 10, 10, 10),
9495
color: Colors.brown,
95-
child: Text(debugLable),
96+
child: Text(debugLable ?? "Unknown"),
9697
width: 350,
9798
height: 100,
9899
),

pubspec.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ homepage: https://www.jiguang.cn
66

77
environment:
88
sdk: ">=2.0.0-dev.68.0 <3.0.0"
9+
flutter: ">=1.10.0"
910

1011
dependencies:
1112
platform: ^2.0.0
@@ -21,8 +22,11 @@ dev_dependencies:
2122
# The following section is specific to Flutter.
2223
flutter:
2324
plugin:
24-
androidPackage: com.jiguang.jpush
25-
pluginClass: JPushPlugin
25+
android:
26+
package: com.jiguang.jverify
27+
pluginClass: JPushPlugin
28+
ios:
29+
pluginClass: JPushPlugin
2630

2731
# To add assets to your plugin package, add an assets section, like this:
2832
# assets:

0 commit comments

Comments
 (0)