From ca1c82718bb614a1c34e9b277cede36e19300813 Mon Sep 17 00:00:00 2001 From: "qingqing.wang" Date: Wed, 16 Sep 2020 11:41:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0github=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yaml | 2 +- example/lib/main.dart | 3 ++- pubspec.yaml | 8 ++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d93aaa6..b0d0502 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -16,7 +16,7 @@ jobs: - name: Publish uses: sakebook/actions-flutter-pub-publisher@v1.3.0 with: - credential: ${{ secrets.CREDENTIAL_JSON }} + credential: ${{ secrets.CREDENTIAL_JSON_JPUSH }} flutter_package: false skip_test: true dry_run: false diff --git a/example/lib/main.dart b/example/lib/main.dart index 8705650..cc67625 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -14,6 +14,7 @@ class MyApp extends StatefulWidget { class _MyAppState extends State { String debugLable = 'Unknown'; final JPush jpush = new JPush(); + @override void initState() { super.initState(); @@ -92,7 +93,7 @@ class _MyAppState extends State { Container( margin: EdgeInsets.fromLTRB(10, 10, 10, 10), color: Colors.brown, - child: Text(debugLable), + child: Text(debugLable ?? "Unknown"), width: 350, height: 100, ), diff --git a/pubspec.yaml b/pubspec.yaml index f7de2a6..83d1196 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,6 +6,7 @@ homepage: https://www.jiguang.cn environment: sdk: ">=2.0.0-dev.68.0 <3.0.0" + flutter: ">=1.10.0" dependencies: platform: ^2.0.0 @@ -21,8 +22,11 @@ dev_dependencies: # The following section is specific to Flutter. flutter: plugin: - androidPackage: com.jiguang.jpush - pluginClass: JPushPlugin + android: + package: com.jiguang.jverify + pluginClass: JPushPlugin + ios: + pluginClass: JPushPlugin # To add assets to your plugin package, add an assets section, like this: # assets: