Merge pull request #193 from skill20/master

适配JPush Android 3.8.0 , IOS 3.3.6
master
qing 4 years ago committed by GitHub
commit b9de505b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,24 @@
name: publish
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish
uses: sakebook/actions-flutter-pub-publisher@v1.3.0
with:
credential: ${{ secrets.CREDENTIAL_JSON_JPUSH }}
flutter_package: false
skip_test: true
dry_run: false

@ -1,3 +1,5 @@
## 0.5.8
+ 适配最新版本 JPush SDK Android 3.8.0 , IOS 3.3.6
## 0.5.6 ## 0.5.6
+ 修复iOS点击本地通知的通知栏消息缺少extras 字段 + 修复iOS点击本地通知的通知栏消息缺少extras 字段
## 0.5.5 ## 0.5.5

@ -1 +1,21 @@
TODO: Add your license here. MIT License
Copyright (c) 2020 极光开发者
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -16,7 +16,7 @@ dependencies:
// pub 集成 // pub 集成
dependencies: dependencies:
jpush_flutter: 0.5.6 jpush_flutter: 0.5.8
``` ```
### 配置 ### 配置

@ -34,7 +34,7 @@ android {
} }
dependencies { dependencies {
implementation 'cn.jiguang.sdk:jpush:3.6.0' implementation 'cn.jiguang.sdk:jpush:3.8.0'
implementation 'cn.jiguang.sdk:jcore:2.3.4' implementation 'cn.jiguang.sdk:jcore:2.3.4'
// implementation 'com.android.support:appcompat-v7:28.+' // implementation 'com.android.support:appcompat-v7:28.+'
compileOnly files('libs/flutter.jar') compileOnly files('libs/flutter.jar')

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

@ -1,11 +1,12 @@
name: jpush_flutter name: jpush_flutter
description: JIGUANG officially supported JPush Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件Android & iOS(https://www.jiguang.cn). description: JIGUANG officially supported JPush Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件Android & iOS(https://www.jiguang.cn).
version: 0.5.6 version: 0.5.8
author: xudong.rao <xudong.rao@outlook.com> # author: xudong.rao <xudong.rao@outlook.com>
homepage: https://www.jiguang.cn homepage: https://www.jiguang.cn
environment: environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0" sdk: ">=2.1.0 <3.0.0"
flutter: ">=1.10.0"
dependencies: dependencies:
platform: ^2.0.0 platform: ^2.0.0
@ -21,8 +22,11 @@ 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:
pluginClass: JPushPlugin package: com.jiguang.jpush
pluginClass: JPushPlugin
ios:
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:
# assets: # assets:

Loading…
Cancel
Save