Skip to content

Commit b9de505

Browse files
authored
Merge pull request #193 from skill20/master
适配JPush Android 3.8.0 , IOS 3.3.6
2 parents 8092d8d + 0f37355 commit b9de505

File tree

7 files changed

+60
-9
lines changed

7 files changed

+60
-9
lines changed

.github/workflows/publish.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Publish
17+
uses: sakebook/actions-flutter-pub-publisher@v1.3.0
18+
with:
19+
credential: ${{ secrets.CREDENTIAL_JSON_JPUSH }}
20+
flutter_package: false
21+
skip_test: true
22+
dry_run: false
23+
24+

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 0.5.8
2+
+ 适配最新版本 JPush SDK Android 3.8.0 , IOS 3.3.6
13
## 0.5.6
24
+ 修复:iOS点击本地通知的通知栏消息缺少extras 字段
35
## 0.5.5

LICENSE

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
1717
// pub 集成
1818
dependencies:
19-
jpush_flutter: 0.5.6
19+
jpush_flutter: 0.5.8
2020
```
2121

2222
### 配置

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434
}
3535

3636
dependencies {
37-
implementation 'cn.jiguang.sdk:jpush:3.6.0'
37+
implementation 'cn.jiguang.sdk:jpush:3.8.0'
3838
implementation 'cn.jiguang.sdk:jcore:2.3.4'
3939
// implementation 'com.android.support:appcompat-v7:28.+'
4040
compileOnly files('libs/flutter.jar')

example/lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class MyApp extends StatefulWidget {
1414
class _MyAppState extends State<MyApp> {
1515
String debugLable = 'Unknown';
1616
final JPush jpush = new JPush();
17+
1718
@override
1819
void initState() {
1920
super.initState();
@@ -92,7 +93,7 @@ class _MyAppState extends State<MyApp> {
9293
Container(
9394
margin: EdgeInsets.fromLTRB(10, 10, 10, 10),
9495
color: Colors.brown,
95-
child: Text(debugLable),
96+
child: Text(debugLable ?? "Unknown"),
9697
width: 350,
9798
height: 100,
9899
),

pubspec.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: jpush_flutter
22
description: JIGUANG officially supported JPush Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)(https://www.jiguang.cn).
3-
version: 0.5.6
4-
author: xudong.rao <xudong.rao@outlook.com>
3+
version: 0.5.8
4+
# author: xudong.rao <xudong.rao@outlook.com>
55
homepage: https://www.jiguang.cn
66

77
environment:
8-
sdk: ">=2.0.0-dev.68.0 <3.0.0"
8+
sdk: ">=2.1.0 <3.0.0"
9+
flutter: ">=1.10.0"
910

1011
dependencies:
1112
platform: ^2.0.0
@@ -21,8 +22,11 @@ dev_dependencies:
2122
# The following section is specific to Flutter.
2223
flutter:
2324
plugin:
24-
androidPackage: com.jiguang.jpush
25-
pluginClass: JPushPlugin
25+
android:
26+
package: com.jiguang.jpush
27+
pluginClass: JPushPlugin
28+
ios:
29+
pluginClass: JPushPlugin
2630

2731
# To add assets to your plugin package, add an assets section, like this:
2832
# assets:

0 commit comments

Comments
 (0)