添加github workflows

master
qingqing.wang 4 years ago
parent 855635c5b4
commit ca1c82718b

@ -16,7 +16,7 @@ jobs:
- name: Publish - name: Publish
uses: sakebook/actions-flutter-pub-publisher@v1.3.0 uses: sakebook/actions-flutter-pub-publisher@v1.3.0
with: with:
credential: ${{ secrets.CREDENTIAL_JSON }} credential: ${{ secrets.CREDENTIAL_JSON_JPUSH }}
flutter_package: false flutter_package: false
skip_test: true skip_test: true
dry_run: false dry_run: false

@ -14,6 +14,7 @@ class MyApp extends StatefulWidget {
class _MyAppState extends State<MyApp> { class _MyAppState extends State<MyApp> {
String debugLable = 'Unknown'; String debugLable = 'Unknown';
final JPush jpush = new JPush(); final JPush jpush = new JPush();
@override @override
void initState() { void initState() {
super.initState(); super.initState();
@ -92,7 +93,7 @@ class _MyAppState extends State<MyApp> {
Container( Container(
margin: EdgeInsets.fromLTRB(10, 10, 10, 10), margin: EdgeInsets.fromLTRB(10, 10, 10, 10),
color: Colors.brown, color: Colors.brown,
child: Text(debugLable), child: Text(debugLable ?? "Unknown"),
width: 350, width: 350,
height: 100, height: 100,
), ),

@ -6,6 +6,7 @@ homepage: https://www.jiguang.cn
environment: environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0" sdk: ">=2.0.0-dev.68.0 <3.0.0"
flutter: ">=1.10.0"
dependencies: dependencies:
platform: ^2.0.0 platform: ^2.0.0
@ -21,7 +22,10 @@ dev_dependencies:
# The following section is specific to Flutter. # The following section is specific to Flutter.
flutter: flutter:
plugin: plugin:
androidPackage: com.jiguang.jpush android:
package: com.jiguang.jverify
pluginClass: JPushPlugin
ios:
pluginClass: JPushPlugin pluginClass: JPushPlugin
# To add assets to your plugin package, add an assets section, like this: # To add assets to your plugin package, add an assets section, like this:

Loading…
Cancel
Save