Skip to content

Commit 09a1500

Browse files
committed
android编译问题处理
1 parent 812f60b commit 09a1500

File tree

12 files changed

+26
-25
lines changed

12 files changed

+26
-25
lines changed

android/app/build.gradle

+7-7
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ apply plugin: 'kotlin-android'
3232
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
3333

3434
android {
35-
namespace "com.xhx.video.saver"
35+
namespace "com.xhx.tubesavely"
3636
compileSdk 34
3737
ndkVersion flutter.ndkVersion
3838

@@ -53,7 +53,7 @@ android {
5353

5454
defaultConfig {
5555
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
56-
applicationId "com.xhx.video.saver"
56+
applicationId "com.xhx.tubesavely"
5757
// You can update the following values to match your application needs.
5858
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
5959
minSdk 24
@@ -62,11 +62,11 @@ android {
6262
versionName flutterVersionName
6363
multiDexEnabled true
6464

65-
ndk {
66-
//选择要添加的对应 cpu 类型的 .so 库。
67-
abiFilters 'arm64-v8a'
68-
// abiFilters 'armeabi-v7a' //'arm64-v8a', 'armeabi',
69-
}
65+
// ndk {
66+
// //选择要添加的对应 cpu 类型的 .so 库。
67+
//// abiFilters 'arm64-v8a'
68+
//// abiFilters 'armeabi-v7a' //'arm64-v8a', 'armeabi',
69+
// }
7070
}
7171

7272
signingConfigs {

android/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.xhx.video.saver">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.xhx.tubesavely">
22

33
<uses-permission android:name="android.permission.INTERNET" />
44
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />

android/app/src/main/kotlin/com/xhx/video/saver/App.kt renamed to android/app/src/main/kotlin/com/xhx/tubesavely/App.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.xhx.video.saver
1+
package com.xhx.tubesavely
22

33
import android.app.Application
44
//import com.umeng.commonsdk.UMConfigure

android/app/src/main/kotlin/com/xhx/video/saver/AppInfo.kt renamed to android/app/src/main/kotlin/com/xhx/tubesavely/AppInfo.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.xhx.video.saver
1+
package com.xhx.tubesavely
22

33
import android.content.Context
44
import android.content.pm.PackageManager

android/app/src/main/kotlin/com/xhx/video/saver/FlutterAppUpgradePlugin.kt renamed to android/app/src/main/kotlin/com/xhx/tubesavely/FlutterAppUpgradePlugin.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.xhx.video.saver
1+
package com.xhx.tubesavely
22

33
import android.annotation.SuppressLint
44
import android.app.Activity

android/app/src/main/kotlin/com/xhx/video/saver/MainActivity.kt renamed to android/app/src/main/kotlin/com/xhx/tubesavely/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.xhx.video.saver
1+
package com.xhx.tubesavely
22

33

44
import io.flutter.embedding.android.FlutterActivity

android/app/src/main/kotlin/com/xhx/video/saver/MethodPlugin.kt renamed to android/app/src/main/kotlin/com/xhx/tubesavely/MethodPlugin.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.xhx.video.saver
1+
package com.xhx.tubesavely
22

33
import android.app.Activity
44
import android.content.Intent
@@ -7,7 +7,7 @@ import android.content.pm.PackageManager
77
import android.net.Uri
88
import android.os.Build
99
//import com.umeng.commonsdk.UMConfigure
10-
import com.xhx.video.saver.AppInfo.getAppChannelId
10+
import com.xhx.tubesavely.AppInfo.getAppChannelId
1111
import io.flutter.embedding.engine.plugins.FlutterPlugin
1212
import io.flutter.embedding.engine.plugins.activity.ActivityAware
1313
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
@@ -20,7 +20,7 @@ class MethodPlugin : MethodChannel.MethodCallHandler, FlutterPlugin, ActivityAwa
2020

2121
private var activity: Activity? = null
2222
private var channel: MethodChannel? = null
23-
private val FLUTTERPLUGIN = "com.xhx.video.saver/plugin"
23+
private val FLUTTERPLUGIN = "com.xhx.tubesavely/plugin"
2424
private var flutterResult: MethodChannel.Result? = null
2525

2626
@androidx.annotation.RequiresApi(Build.VERSION_CODES.DONUT)

lib/main.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ class _MainPageState extends State<MainPage> {
131131

132132
@override
133133
void initState() {
134-
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
135-
systemNavigationBarColor: Theme.of(context).scaffoldBackgroundColor,
136-
statusBarColor: Colors.transparent));
134+
// SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
135+
// systemNavigationBarColor: Colors.transparent,
136+
// statusBarColor: Colors.transparent));
137137

138138
drawerIndex = DrawerIndex.Home;
139139
screenView = const HomePage();

lib/screen/mobile/pages/splash_page.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import 'package:flutter/services.dart';
66
import 'package:flutter_animate/flutter_animate.dart';
77
import 'package:shimmer/shimmer.dart';
88
import 'package:tubesavely/main.dart';
9+
import 'package:tubesavely/screen/mobile/pages/home_page.dart';
910
import 'package:tubesavely/theme/app_theme.dart';
1011

1112
class SplashPage extends StatefulWidget {
@@ -41,7 +42,7 @@ class _SplashPageState extends State<SplashPage> with SingleTickerProviderStateM
4142
}
4243

4344
Future<bool> _mockCheckForSession() async {
44-
await Future.delayed(const Duration(milliseconds: 2400), () {});
45+
await Future.delayed(const Duration(milliseconds: 3400), () {});
4546
return true;
4647
}
4748

linux/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(runner LANGUAGES CXX)
77
set(BINARY_NAME "TubeSavely")
88
# The unique GTK application identifier for this application. See:
99
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
10-
set(APPLICATION_ID "com.xhx.video.saver")
10+
set(APPLICATION_ID "com.xhx.tubesavely")
1111

1212
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
1313
# versions of CMake.

macos/Runner.xcodeproj/project.pbxproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@
483483
CURRENT_PROJECT_VERSION = 1;
484484
GENERATE_INFOPLIST_FILE = YES;
485485
MARKETING_VERSION = 1.0;
486-
PRODUCT_BUNDLE_IDENTIFIER = com.xhx.video.saver.RunnerTests;
486+
PRODUCT_BUNDLE_IDENTIFIER = com.xhx.tubesavely.RunnerTests;
487487
PRODUCT_NAME = "$(TARGET_NAME)";
488488
SWIFT_VERSION = 5.0;
489489
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/tubesavely.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/tubesavely";
@@ -498,7 +498,7 @@
498498
CURRENT_PROJECT_VERSION = 1;
499499
GENERATE_INFOPLIST_FILE = YES;
500500
MARKETING_VERSION = 1.0;
501-
PRODUCT_BUNDLE_IDENTIFIER = com.xhx.video.saver.RunnerTests;
501+
PRODUCT_BUNDLE_IDENTIFIER = com.xhx.tubesavely.RunnerTests;
502502
PRODUCT_NAME = "$(TARGET_NAME)";
503503
SWIFT_VERSION = 5.0;
504504
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/tubesavely.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/tubesavely";
@@ -513,7 +513,7 @@
513513
CURRENT_PROJECT_VERSION = 1;
514514
GENERATE_INFOPLIST_FILE = YES;
515515
MARKETING_VERSION = 1.0;
516-
PRODUCT_BUNDLE_IDENTIFIER = com.xhx.video.saver.RunnerTests;
516+
PRODUCT_BUNDLE_IDENTIFIER = com.xhx.tubesavely.RunnerTests;
517517
PRODUCT_NAME = "$(TARGET_NAME)";
518518
SWIFT_VERSION = 5.0;
519519
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/tubesavely.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/tubesavely";

windows/runner/Runner.rc

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ BEGIN
9393
"040904e4"
9494
BEGIN
9595
VALUE
96-
"CompanyName", "com.xhx.video.saver" "\0"
96+
"CompanyName", "com.xhx.tubesavely" "\0"
9797
VALUE "FileDescription", "TubeSavely" "\0"
9898
VALUE "FileVersion", VERSION_AS_STRING "\0"
9999
VALUE "InternalName", "TubeSavely" "\0"
100-
VALUE "LegalCopyright", "Copyright (C) 2023 com.xhx.downloaderx. All rights reserved." "\0"
100+
VALUE "LegalCopyright", "Copyright (C) 2023 com.xhx.tubesavely. All rights reserved." "\0"
101101
VALUE "OriginalFilename", "TubeSavely.exe" "\0"
102102
VALUE "ProductName", "TubeSavely" "\0"
103103
VALUE "ProductVersion", VERSION_AS_STRING "\0"

0 commit comments

Comments
 (0)