添加github workflows

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

@ -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

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

@ -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,7 +22,10 @@ dev_dependencies:
# The following section is specific to Flutter.
flutter:
plugin:
androidPackage: com.jiguang.jpush
android:
package: com.jiguang.jverify
pluginClass: JPushPlugin
ios:
pluginClass: JPushPlugin
# To add assets to your plugin package, add an assets section, like this:

Loading…
Cancel
Save