panhui 7 năm trước cách đây
mục cha
commit
1f93902e20
3 tập tin đã thay đổi với 1 bổ sung49 xóa
  1. 1 7
      android/app/build.gradle
  2. 0 41
      lib/widget/SplashPageState.dart
  3. 0 1
      pubspec.yaml

+ 1 - 7
android/app/build.gradle

@@ -39,14 +39,8 @@ android {
         versionName flutterVersionName
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
         ndk {
-            // abiFilters 'armeabi-v7a'
-            abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a',     
+            // abiFilters 'armeabi-v7a'  
         }
-        manifestPlaceholders = [
-            JPUSH_PKGNAME : applicationId,
-            JPUSH_APPKEY : "59c5293593306ecb18120462", // NOTE: JPush 上注册的包名对应的 Appkey.
-            JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
-        ]
     }
     signingConfigs {
         debug {

+ 0 - 41
lib/widget/SplashPageState.dart

@@ -1,41 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:jpush_flutter/jpush_flutter.dart';
-
-class SplashPage extends StatefulWidget {
-  @override
-  SplashPageState createState() => SplashPageState();
-}
-
-class SplashPageState extends State<SplashPage> {
-  JPush jPush = new JPush();
-  String registerId;
-  _startupJpush() {
-    jPush.setup(
-        appKey: "59c5293593306ecb18120462",
-        channel: "developer-default",
-        debug: true);
-  }
-
-  _getRegisterID() async {
-    registerId = await jPush.getRegistrationID();
-    print('*********registerid=' + registerId);
-    return registerId;
-  }
-
-  _setPushTag() {
-    List<String> tags = List<String>();
-    tags.add("jason");
-    jPush.setTags(tags);
-  }
-
-  _addEventHandler() {
-    jPush.addEventHandler(onReceiveNotification: (Map<String, dynamic> event) {
-      print('*********addOnreceive>>>>>>$event');//进程运行时候可以接受
-      var title = event['alert'];
-      // var extra = json.decode(event['extras']['cn.jpush.android.EXTRA']);
-    });
-}
-
-  @override
-  Widget build(BuildContext context) {}
-}

+ 0 - 1
pubspec.yaml

@@ -30,7 +30,6 @@ dependencies:
   shared_preferences: ^0.5.1
   package_info: ^0.4.0
   video_player: ^0.10.0
-  jpush_flutter: ^0.0.11
   url_launcher: ^5.0.1
 
 dev_dependencies: