1.修改iOS包名和名称
2.重新配置firebase
This commit is contained in:
parent
f271d47c86
commit
af8d93a809
@ -1 +1 @@
|
||||
{"flutter":{"platforms":{"android":{"default":{"projectId":"nowwallpaper","appId":"1:318284530945:android:c7dd2abf520a9840250700","fileOutput":"android/app/google-services.json"}},"ios":{"default":{"projectId":"nowwallpaper","appId":"1:318284530945:ios:9ac1774ea498265e250700","uploadDebugSymbols":true,"fileOutput":"ios/Runner/GoogleService-Info.plist"}},"dart":{"lib/firebase_options.dart":{"projectId":"nowwallpaper","configurations":{"android":"1:318284530945:android:c7dd2abf520a9840250700","ios":"1:318284530945:ios:9ac1774ea498265e250700"}}}}}}
|
||||
{"flutter":{"platforms":{"android":{"default":{"projectId":"nowwallpaper","appId":"1:318284530945:android:c7dd2abf520a9840250700","fileOutput":"android/app/google-services.json"}},"ios":{"default":{"projectId":"nowwallpaper","appId":"1:318284530945:ios:754fb4ceebd09514250700","uploadDebugSymbols":true,"fileOutput":"ios/Runner/GoogleService-Info.plist"}},"dart":{"lib/firebase_options.dart":{"projectId":"nowwallpaper","configurations":{"android":"1:318284530945:android:c7dd2abf520a9840250700","ios":"1:318284530945:ios:754fb4ceebd09514250700"}}}}}}
|
||||
@ -202,7 +202,7 @@
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||
39CCEDF39CF579238AE308F0 /* [CP] Embed Pods Frameworks */,
|
||||
405E88F0300BCE9602B4DA07 /* [CP] Copy Pods Resources */,
|
||||
41D07400CAF8B16888A62377 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */,
|
||||
A619BA3878CFD24C03A25DF3 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
@ -347,24 +347,6 @@
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
41D07400CAF8B16888A62377 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "FlutterFire: \"flutterfire upload-crashlytics-symbols\"";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\n#!/bin/bash\nPATH=${PATH}:$FLUTTER_ROOT/bin:$HOME/.pub-cache/bin\nflutterfire upload-crashlytics-symbols --upload-symbols-script-path=$PODS_ROOT/FirebaseCrashlytics/upload-symbols --platform=ios --apple-project-path=${SRCROOT} --env-platform-name=${PLATFORM_NAME} --env-configuration=${CONFIGURATION} --env-project-dir=${PROJECT_DIR} --env-built-products-dir=${BUILT_PRODUCTS_DIR} --env-dwarf-dsym-folder-path=${DWARF_DSYM_FOLDER_PATH} --env-dwarf-dsym-file-name=${DWARF_DSYM_FILE_NAME} --env-infoplist-path=${INFOPLIST_PATH} --default-config=default\n";
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
@ -402,6 +384,24 @@
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
A619BA3878CFD24C03A25DF3 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "FlutterFire: \"flutterfire upload-crashlytics-symbols\"";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\n#!/bin/bash\nPATH=${PATH}:$FLUTTER_ROOT/bin:$HOME/.pub-cache/bin\nflutterfire upload-crashlytics-symbols --upload-symbols-script-path=$PODS_ROOT/FirebaseCrashlytics/upload-symbols --platform=ios --apple-project-path=${SRCROOT} --env-platform-name=${PLATFORM_NAME} --env-configuration=${CONFIGURATION} --env-project-dir=${PROJECT_DIR} --env-built-products-dir=${BUILT_PRODUCTS_DIR} --env-dwarf-dsym-folder-path=${DWARF_DSYM_FOLDER_PATH} --env-dwarf-dsym-file-name=${DWARF_DSYM_FILE_NAME} --env-infoplist-path=${INFOPLIST_PATH} --default-config=default\n";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
@ -519,7 +519,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.hello.wallpaper;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.now.wallpaper;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_VERSION = 5.0;
|
||||
@ -704,7 +704,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.hello.wallpaper;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.now.wallpaper;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
@ -727,7 +727,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.hello.wallpaper;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.now.wallpaper;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_VERSION = 5.0;
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
<key>PLIST_VERSION</key>
|
||||
<string>1</string>
|
||||
<key>BUNDLE_ID</key>
|
||||
<string>com.hello.wallpaper</string>
|
||||
<string>com.now.wallpaper</string>
|
||||
<key>PROJECT_ID</key>
|
||||
<string>nowwallpaper</string>
|
||||
<key>STORAGE_BUCKET</key>
|
||||
@ -25,6 +25,6 @@
|
||||
<key>IS_SIGNIN_ENABLED</key>
|
||||
<true></true>
|
||||
<key>GOOGLE_APP_ID</key>
|
||||
<string>1:318284530945:ios:9ac1774ea498265e250700</string>
|
||||
<string>1:318284530945:ios:754fb4ceebd09514250700</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -7,7 +7,7 @@
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Hello Wallpaper</string>
|
||||
<string>Now Wallpaper</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
// Description: 广告管理
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:applovin_max/applovin_max.dart';
|
||||
@ -20,9 +21,9 @@ class ApplovinManage {
|
||||
final String applovinKey = 'nEo4OHOhAZuAK9-IARuNaUfW-yDLBayq9FIGZs0L9XMNTByuDV6dsvMEIGnEAkQu-KR8D42QdKRlbniP910xnK';
|
||||
|
||||
/// 广告单元Id
|
||||
final String adUnitId1 = 'a2ced77c3755055b';
|
||||
final String adUnitId2 = 'a3819ba97232d772';
|
||||
final String adUnitId3 = 'bb0bfc77dcfd1fc4';
|
||||
final String adUnitId1 = Platform.isAndroid ? 'a2ced77c3755055b' : 'a2ced77c3755055b';
|
||||
final String adUnitId2 = Platform.isAndroid ? 'a3819ba97232d772' : 'a3819ba97232d772';
|
||||
final String adUnitId3 = Platform.isAndroid ? 'bb0bfc77dcfd1fc4' : 'bb0bfc77dcfd1fc4';
|
||||
|
||||
/// 是否已初始化
|
||||
bool isInitialized = false;
|
||||
|
||||
@ -59,11 +59,11 @@ class DefaultFirebaseOptions {
|
||||
|
||||
static const FirebaseOptions ios = FirebaseOptions(
|
||||
apiKey: 'AIzaSyBAVP2-PNvC07OPHepWpCCb6QzVTRk1cMM',
|
||||
appId: '1:318284530945:ios:9ac1774ea498265e250700',
|
||||
appId: '1:318284530945:ios:754fb4ceebd09514250700',
|
||||
messagingSenderId: '318284530945',
|
||||
projectId: 'nowwallpaper',
|
||||
storageBucket: 'nowwallpaper.appspot.com',
|
||||
iosBundleId: 'com.hello.wallpaper',
|
||||
iosBundleId: 'com.now.wallpaper',
|
||||
);
|
||||
|
||||
}
|
||||
@ -53,7 +53,11 @@ void main() async {
|
||||
|
||||
// 沉浸式状态栏
|
||||
if(Platform.isAndroid) {
|
||||
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(statusBarColor: Colors.transparent));
|
||||
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent,
|
||||
systemNavigationBarColor: Colors.black,
|
||||
systemNavigationBarIconBrightness: Brightness.light,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -9,6 +9,12 @@ import 'package:hello_wallpaper/routes/app_pages.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
|
||||
class SettingsController extends GetxController {
|
||||
final privacyUrlAndroid = 'https://nowwallpaperapp.mystrikingly.com/privacy';
|
||||
final termsUrlAndroid = 'https://nowwallpaperapp.mystrikingly.com/terms';
|
||||
|
||||
final privacyUrlIOS = 'https://nowwallpaper.mystrikingly.com/privacy';
|
||||
final termsUrlIOS = 'https://nowwallpaper.mystrikingly.com/terms';
|
||||
|
||||
// final options = ['About', 'Feedback', 'Share', 'Privacy Policy', 'Terms of Service'];
|
||||
final options = ['About', 'Share', 'Privacy Policy', 'Terms of Service'];
|
||||
|
||||
@ -25,13 +31,13 @@ class SettingsController extends GetxController {
|
||||
if (index == 2) {
|
||||
Get.toNamed(AppPages.privacyPolicy, arguments: {
|
||||
'title': options[index],
|
||||
'url': 'https://nowwallpaperapp.mystrikingly.com/privacy',
|
||||
'url': Platform.isIOS ? privacyUrlIOS : privacyUrlAndroid,
|
||||
});
|
||||
}
|
||||
if (index == 3) {
|
||||
Get.toNamed(AppPages.termsOfService, arguments: {
|
||||
'title': options[index],
|
||||
'url': 'https://nowwallpaperapp.mystrikingly.com/terms'
|
||||
'url': Platform.isIOS ? termsUrlIOS : termsUrlAndroid,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,4 +2,6 @@
|
||||
// Date: 2024/5/7
|
||||
// Description: 文本
|
||||
|
||||
const appName = 'Hello Wallpaper';
|
||||
import 'dart:io';
|
||||
|
||||
final appName = '${Platform.isAndroid ? 'Hello' : 'Now'} Wallpaper';
|
||||
Loading…
Reference in New Issue
Block a user