mod: update about

This commit is contained in:
bggRGjQaUbCoE
2024-10-01 07:29:27 +08:00
parent 5b2412ae5b
commit 212342e285
11 changed files with 64 additions and 144 deletions

View File

@@ -39,7 +39,7 @@ def _keyPassword = System.getenv("KEY_PASSWORD") ?: keystoreProperties["keyPassw
android { android {
compileSdkVersion 34 compileSdkVersion 34
namespace 'com.orz12.PiliPalaX' namespace 'com.example.pilipalax'
ndkVersion flutter.ndkVersion ndkVersion flutter.ndkVersion
compileOptions { compileOptions {
@@ -57,7 +57,7 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.orz12.PiliPalaX" applicationId "com.example.pilipalax"
// You can update the following values to match your application needs. // You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
targetSdkVersion flutter.targetSdkVersion targetSdkVersion flutter.targetSdkVersion
@@ -89,7 +89,6 @@ android {
signingConfig _storeFile != null ? signingConfigs.release : signingConfigs.debug signingConfig _storeFile != null ? signingConfigs.release : signingConfigs.debug
} }
debug { debug {
//applicationId "com.orz12.PiliPalaX.debug"
applicationIdSuffix ".debug" applicationIdSuffix ".debug"
} }
} }

View File

@@ -1,7 +1,7 @@
<manifest <manifest
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
package="com.orz12.PiliPalaX"> package="com.example.pilipalax">
<!-- The INTERNET permission is required for development. Specifically, <!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc. to allow setting breakpoints, to provide hot reload, etc.
@@ -14,7 +14,7 @@
android:label="PiliPalaX Debug" android:label="PiliPalaX Debug"
tools:replace="android:label"> tools:replace="android:label">
<activity <activity
android:name="com.orz12.PiliPalaX.MainActivity" android:name=".MainActivity"
android:exported="true" android:exported="true"
android:launchMode="singleTask" android:launchMode="singleTask"
android:theme="@style/LaunchTheme" android:theme="@style/LaunchTheme"

View File

@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.orz12.PiliPalaX"> package="com.example.pilipalax">
<queries> <queries>
<intent> <intent>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
@@ -45,7 +45,7 @@
android:fullBackupContent="false" android:fullBackupContent="false"
tools:replace="android:allowBackup"> tools:replace="android:allowBackup">
<activity <activity
android:name="com.orz12.PiliPalaX.MainActivity" android:name=".MainActivity"
android:exported="true" android:exported="true"
android:launchMode="singleTask" android:launchMode="singleTask"
android:theme="@style/LaunchTheme" android:theme="@style/LaunchTheme"

View File

@@ -1,4 +1,4 @@
package com.orz12.PiliPalaX package com.example.pilipalax
import io.flutter.embedding.android.FlutterActivity import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine import io.flutter.embedding.engine.FlutterEngine

View File

@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.orz12.PiliPalaX"> package="com.example.pilipalax">
<!-- The INTERNET permission is required for development. Specifically, <!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc. to allow setting breakpoints, to provide hot reload, etc.

View File

@@ -383,7 +383,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.orz12.PiliPalaX; PRODUCT_BUNDLE_IDENTIFIER = com.example.pilipalax;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
@@ -512,7 +512,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.orz12.PiliPalaX; PRODUCT_BUNDLE_IDENTIFIER = com.example.pilipalax;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -535,7 +535,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.orz12.PiliPalaX; PRODUCT_BUNDLE_IDENTIFIER = com.example.pilipalax;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;

View File

@@ -1,5 +1,3 @@
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
@@ -14,6 +12,10 @@ import 'package:PiliPalaX/utils/utils.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import '../../utils/cache_manage.dart'; import '../../utils/cache_manage.dart';
const String _sourceCodeUrl = 'https://github.com/bggRGjQaUbCoE/PiliPalaX';
const String _originSourceCodeUrl = 'https://github.com/guozhigq/pilipala';
const String _upstreamUrl = 'https://github.com/orz12/PiliPalaX';
class AboutPage extends StatefulWidget { class AboutPage extends StatefulWidget {
const AboutPage({super.key}); const AboutPage({super.key});
@@ -86,26 +88,26 @@ class _AboutPageState extends State<AboutPage> {
style: subTitleStyle), style: subTitleStyle),
), ),
), ),
Obx( // Obx(
() => ListTile( // () => ListTile(
onTap: () => _aboutController.onUpdate(), // onTap: () => _aboutController.onUpdate(),
title: const Text('最新版本'), // title: const Text('最新版本'),
leading: const Icon(Icons.flag_outlined), // leading: const Icon(Icons.flag_outlined),
trailing: Text( // trailing: Text(
_aboutController.isLoading.value // _aboutController.isLoading.value
? '正在获取' // ? '正在获取'
: _aboutController.isUpdate.value // : _aboutController.isUpdate.value
? '有新版本 ❤️${_aboutController.remoteVersion.value}' // ? '有新版本 ❤️${_aboutController.remoteVersion.value}'
: '当前已是最新版', // : '当前已是最新版',
style: subTitleStyle, // style: subTitleStyle,
), // ),
), // ),
), // ),
// ListTile( // ListTile(
// onTap: () {}, // onTap: () {},
// title: const Text('更新日志'), // title: const Text('更新日志'),
// trailing: const Icon( // trailing: const Icon(
// Icons.arrow_forward_ios, // Icons.arrow_forward,
// size: 16, // size: 16,
// ), // ),
// ), // ),
@@ -115,11 +117,26 @@ class _AboutPageState extends State<AboutPage> {
color: Theme.of(context).colorScheme.outlineVariant, color: Theme.of(context).colorScheme.outlineVariant,
), ),
ListTile( ListTile(
onTap: () => _aboutController.githubUrl(), onTap: () => _aboutController.githubUrl(_sourceCodeUrl),
leading: const Icon(Icons.star_outline_outlined), leading: const Icon(Icons.code),
title: const Text('Github开源仓库'), title: const Text('Source Code'),
trailing: Text( subtitle: Text(_sourceCodeUrl, style: subTitleStyle),
'github.com/orz12/PiliPalaX', ),
ListTile(
onTap: () => _aboutController.githubUrl(_originSourceCodeUrl),
leading: const Icon(Icons.code),
title: const Text('Origin'),
subtitle: Text(
_originSourceCodeUrl,
style: subTitleStyle,
),
),
ListTile(
onTap: () => _aboutController.githubUrl(_upstreamUrl),
leading: const Icon(Icons.code),
title: const Text('Upstream'),
subtitle: Text(
_upstreamUrl,
style: subTitleStyle, style: subTitleStyle,
), ),
), ),
@@ -128,37 +145,16 @@ class _AboutPageState extends State<AboutPage> {
leading: const Icon(Icons.feedback_outlined), leading: const Icon(Icons.feedback_outlined),
title: const Text('问题反馈'), title: const Text('问题反馈'),
trailing: Icon( trailing: Icon(
Icons.arrow_forward_ios, Icons.arrow_forward,
size: 16, size: 16,
color: outline, color: outline,
), ),
), ),
ListTile(
onTap: () => _aboutController.qqGroup(),
leading: const Icon(Icons.group_add_outlined),
title: const Text('QQ群'),
trailing: Text(
'392176105',
style: subTitleStyle,
),
),
ListTile(
onTap: () => _aboutController.tgChannel(),
leading: const Icon(Icons.group_add_outlined),
title: const Text('TG频道'),
trailing: Icon(Icons.arrow_forward_ios, size: 16, color: outline),
),
ListTile(
onTap: () => _aboutController.aPay(),
leading: const Icon(Icons.wallet_giftcard_outlined),
title: const Text('赞赏'),
trailing: Icon(Icons.arrow_forward_ios, size: 16, color: outline),
),
ListTile( ListTile(
onTap: () => _aboutController.logs(), onTap: () => _aboutController.logs(),
leading: const Icon(Icons.bug_report_outlined), leading: const Icon(Icons.bug_report_outlined),
title: const Text('错误日志'), title: const Text('错误日志'),
trailing: Icon(Icons.arrow_forward_ios, size: 16, color: outline), trailing: Icon(Icons.arrow_forward, size: 16, color: outline),
), ),
ListTile( ListTile(
onTap: () async { onTap: () async {
@@ -314,7 +310,7 @@ class AboutController extends GetxController {
// 获取当前版本 // 获取当前版本
getCurrentApp(); getCurrentApp();
// 获取最新的版本 // 获取最新的版本
getRemoteApp(); // getRemoteApp();
} }
// 获取设备信息 // 获取设备信息
@@ -333,10 +329,6 @@ class AboutController extends GetxController {
Future getCurrentApp() async { Future getCurrentApp() async {
var currentInfo = await PackageInfo.fromPlatform(); var currentInfo = await PackageInfo.fromPlatform();
String buildNumber = currentInfo.buildNumber; String buildNumber = currentInfo.buildNumber;
//if is android
if (Platform.isAndroid) {
buildNumber = buildNumber.substring(0, buildNumber.length - 1);
}
currentVersion.value = "${currentInfo.version}+$buildNumber"; currentVersion.value = "${currentInfo.version}+$buildNumber";
} }
@@ -366,36 +358,20 @@ class AboutController extends GetxController {
} }
// 跳转github // 跳转github
githubUrl() { githubUrl(String url) {
launchUrl( launchUrl(
Uri.parse('https://github.com/orz12/pilipala'), Uri.parse(url),
mode: LaunchMode.externalApplication, mode: LaunchMode.externalApplication,
); );
} }
githubRelease() { githubRelease() {
launchUrl( launchUrl(
Uri.parse('https://github.com/guozhigq/pilipala/release'), Uri.parse('$_sourceCodeUrl/release'),
mode: LaunchMode.externalApplication, mode: LaunchMode.externalApplication,
); );
} }
// 从网盘下载
panDownload() {
Clipboard.setData(
const ClipboardData(text: 'pili'),
);
SmartDialog.showToast(
'已复制提取码pili',
displayTime: const Duration(milliseconds: 500),
).then(
(value) => launchUrl(
Uri.parse('https://www.123pan.com/s/9sVqVv-flu0A.html'),
mode: LaunchMode.externalApplication,
),
);
}
// 问题反馈 // 问题反馈
feedback(BuildContext context) async { feedback(BuildContext context) async {
await showDialog( await showDialog(
@@ -403,12 +379,12 @@ class AboutController extends GetxController {
builder: (context) { builder: (context) {
return SimpleDialog( return SimpleDialog(
clipBehavior: Clip.hardEdge, clipBehavior: Clip.hardEdge,
title: const Text('问题反馈(建议直接加群反馈)'), title: const Text('问题反馈'),
children: [ children: [
ListTile( ListTile(
title: const Text('GitHub Issue'), title: const Text('GitHub Issue'),
onTap: () => launchUrl( onTap: () => launchUrl(
Uri.parse('https://github.com/orz12/pilipala/issues'), Uri.parse('$_sourceCodeUrl/issues'),
// 系统自带浏览器打开 // 系统自带浏览器打开
mode: LaunchMode.externalApplication, mode: LaunchMode.externalApplication,
), ),
@@ -427,61 +403,6 @@ class AboutController extends GetxController {
); );
} }
// qq群
qqGroup() {
Clipboard.setData(
const ClipboardData(text: '392176105'),
);
SmartDialog.showToast('已复制QQ群号');
try {
launchUrl(
Uri.parse(
'mqqapi://card/show_pslcard?src_type=internal&version=1&uin=392176105&card_type=group&source=qrcode'),
mode: LaunchMode.externalApplication,
);
} catch (e) {
print(e);
}
}
// tg频道
tgChannel() {
Clipboard.setData(
const ClipboardData(text: 'https://t.me/+162zlPtZlT9hNWVl'),
);
SmartDialog.showToast(
'已复制,即将在浏览器打开',
displayTime: const Duration(milliseconds: 500),
).then(
(value) => launchUrl(
Uri.parse('https://t.me/+162zlPtZlT9hNWVl'),
mode: LaunchMode.externalApplication,
),
);
}
// 官网
// webSiteUrl() {
// launchUrl(
// Uri.parse('https://pilipalanet.mysxl.cn/pilipala-x'),
// mode: LaunchMode.externalApplication,
// );
// }
// aPay() {
// try {
// launchUrl(
// Uri.parse('https://pilipalanet.mysxl.cn/pilipalaxadmire'),
// mode: LaunchMode.externalApplication,
// );
// } catch (e) {
// print(e);
// }
// }
aPay() {
SmartDialog.showToast('新接口来不及写了,直接来群里找作者吧');
}
// 日志 // 日志
logs() { logs() {
Get.toNamed('/logs'); Get.toNamed('/logs');

View File

@@ -52,7 +52,7 @@ class _LogsPageState extends State<LogsPage> {
if (l.startsWith("Crash occurred on")) { if (l.startsWith("Crash occurred on")) {
try { try {
date = DateTime.parse( date = DateTime.parse(
l.split("Crash occurred on")[1].trim(),//.split('.')[0], l.split("Crash occurred on")[1].trim(), //.split('.')[0],
); );
} catch (e) { } catch (e) {
debugPrint(e.toString()); debugPrint(e.toString());
@@ -82,7 +82,7 @@ class _LogsPageState extends State<LogsPage> {
void feedback() { void feedback() {
launchUrl( launchUrl(
Uri.parse('https://github.com/orz12/pilipala/issues'), Uri.parse('https://github.com/bggRGjQaUbCoE/PiliPalaX/issues'),
// 系统自带浏览器打开 // 系统自带浏览器打开
mode: LaunchMode.externalApplication, mode: LaunchMode.externalApplication,
); );

View File

@@ -10,7 +10,7 @@ Future<VideoPlayerServiceHandler> initAudioService() async {
return await AudioService.init( return await AudioService.init(
builder: () => VideoPlayerServiceHandler(), builder: () => VideoPlayerServiceHandler(),
config: const AudioServiceConfig( config: const AudioServiceConfig(
androidNotificationChannelId: 'com.orz12.PiliPalaX.audio', androidNotificationChannelId: 'com.example.pilipalax.audio',
androidNotificationChannelName: 'Audio Service PiliPalaX', androidNotificationChannelName: 'Audio Service PiliPalaX',
androidNotificationOngoing: true, androidNotificationOngoing: true,
androidStopForegroundOnPause: true, androidStopForegroundOnPause: true,

View File

@@ -378,7 +378,7 @@ class Utils {
onPressed: () { onPressed: () {
launchUrl( launchUrl(
Uri.parse( Uri.parse(
"https://github.com/orz12/pilipala/commits/main/"), "https://github.com/bggRGjQaUbCoE/PiliPalaX/commits/main/"),
mode: LaunchMode.externalApplication, mode: LaunchMode.externalApplication,
); );
}, },

View File

@@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.0.22+114514 version: 1.0.22+123
environment: environment:
sdk: ">=3.0.0 <4.0.0" sdk: ">=3.0.0 <4.0.0"