Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-App
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
reason
2022-06-10 11:58:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
90fb98ab266f6043a682bdd478ea19f2662629d9
90fb98ab
1 parent
af64dd5d
增加了第三方登录
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
12 deletions
android/app/build.gradle
lib/home/splash_page.dart
lib/login/page/login_page.dart
pubspec.lock
pubspec.yaml
android/app/build.gradle
View file @
90fb98a
...
...
@@ -55,6 +55,11 @@ android {
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
multiDexEnabled
true
manifestPlaceholders
=
[
JPUSH_PKGNAME
:
applicationId
,
JPUSH_APPKEY
:
"a3396b5bd1a399cfe5be96ed"
,
// NOTE: JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL
:
"default"
,
//暂时填写默认值即可.
]
}
signingConfigs
{
...
...
lib/home/splash_page.dart
View file @
90fb98a
...
...
@@ -15,6 +15,7 @@ import 'package:Parlando/util/image_utils.dart';
import
'package:Parlando/util/theme_utils.dart'
;
import
'package:Parlando/widgets/fractionally_aligned_sized_box.dart'
;
import
'package:Parlando/widgets/load_image.dart'
;
import
'package:jpush_flutter/jpush_flutter.dart'
;
import
'package:quick_actions/quick_actions.dart'
;
import
'package:rxdart/rxdart.dart'
;
import
'package:sp_util/sp_util.dart'
;
...
...
@@ -60,6 +61,19 @@ class _SplashPageState extends State<SplashPage> {
}
});
}
///创建 JPush
JPush
jpush
=
new
JPush
();
///配置应用 Key
jpush
.
setup
(
appKey:
"a3396b5bd1a399cfe5be96ed"
,
channel:
"default"
,
production:
false
,
/// 设置是否打印 debug 日志
debug:
true
,
);
}
@override
...
...
lib/login/page/login_page.dart
View file @
90fb98a
...
...
@@ -329,6 +329,7 @@ class _LoginPageState extends State<LoginPage>
print
(
"cancelledByUser"
);
break
;
case
TwitterLoginStatus
.
error
:
Toast
.
show
(
"您老八成没有安装Chrome浏览器!"
);
print
(
authResult
.
errorMessage
);
break
;
default
:
...
...
pubspec.lock
View file @
90fb98a
...
...
@@ -133,6 +133,20 @@ packages:
name: camera
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.9.8"
camera_android:
dependency: transitive
description:
name: camera_android
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.9.7+1"
camera_avfoundation:
dependency: transitive
description:
name: camera_avfoundation
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.9.7+1"
camera_platform_interface:
dependency: transitive
...
...
@@ -259,7 +273,7 @@ packages:
name: device_info_plus
url: "https://pub.flutter-io.cn"
source: hosted
version: "3.2.
3
"
version: "3.2.
4
"
device_info_plus_linux:
dependency: transitive
description:
...
...
@@ -432,7 +446,7 @@ packages:
name: flutter_launcher_icons
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.9.
2
"
version: "0.9.
3
"
flutter_lints:
dependency: "direct dev"
description:
...
...
@@ -668,6 +682,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.3"
jpush_flutter:
dependency: "direct main"
description:
name: jpush_flutter
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.2.9"
js:
dependency: transitive
description:
...
...
@@ -800,7 +821,7 @@ packages:
name: path_provider
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.1
0
"
version: "2.0.1
1
"
path_provider_android:
dependency: transitive
description:
...
...
@@ -961,14 +982,14 @@ packages:
name: quick_actions_android
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.6.0+1
0
"
version: "0.6.0+1
1
"
quick_actions_ios:
dependency: transitive
description:
name: quick_actions_ios
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.6.0+1
0
"
version: "0.6.0+1
1
"
quick_actions_platform_interface:
dependency: transitive
description:
...
...
@@ -1302,7 +1323,7 @@ packages:
name: url_launcher
url: "https://pub.flutter-io.cn"
source: hosted
version: "6.1.
2
"
version: "6.1.
3
"
url_launcher_android:
dependency: transitive
description:
...
...
@@ -1393,28 +1414,28 @@ packages:
name: video_player
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.4.
2
"
version: "2.4.
4
"
video_player_android:
dependency: transitive
description:
name: video_player_android
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.3.
5
"
version: "2.3.
6
"
video_player_avfoundation:
dependency: transitive
description:
name: video_player_avfoundation
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.3.
4
"
version: "2.3.
5
"
video_player_platform_interface:
dependency: transitive
description:
name: video_player_platform_interface
url: "https://pub.flutter-io.cn"
source: hosted
version: "5.1.
2
"
version: "5.1.
3
"
video_player_web:
dependency: transitive
description:
...
...
@@ -1470,7 +1491,7 @@ packages:
name: webview_flutter_android
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.8.
9
"
version: "2.8.
11
"
webview_flutter_platform_interface:
dependency: transitive
description:
...
...
pubspec.yaml
View file @
90fb98a
...
...
@@ -116,9 +116,10 @@ dependencies:
event_bus
:
^2.0.0
animated_radial_menu
:
^0.0.1
flutter_inapp_purchase
:
^5.3.0
jpush_flutter
:
^2.2.9
dependency_overrides
:
decimal
:
1.5.0
...
...
Please
register
or
login
to post a comment