This commit is contained in:
fengshengxiong 2024-07-14 18:48:07 -07:00
parent 17c0765901
commit 5b152f66ee
68 changed files with 592 additions and 66 deletions

View File

@ -38,7 +38,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.popular.wallpaperx"
applicationId = "com.ai.wallpaper.genie"
// 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.
minSdk = flutter.minSdkVersion

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<item android:drawable="@android:color/black" />
<!-- You can insert your own image assets here -->
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/launcher_icon" />
android:gravity="fill"
android:src="@mipmap/launcher_image" />
</item>
</layer-list>

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<item android:drawable="@android:color/black" />
<!-- You can insert your own image assets here -->
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/launcher_icon" />
android:gravity="fill"
android:src="@mipmap/launcher_image" />
</item>
</layer-list>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

BIN
assets/icon/icon_app.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 994 KiB

View File

@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"

View File

@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"

62
ios/Podfile Normal file
View File

@ -0,0 +1,62 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '12.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
target 'RunnerTests' do
inherit! :search_paths
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
# You can remove unused permissions here
# for more infomation: https://github.com/BaseflowIT/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionHandlerEnums.h
# e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=0'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
## dart: PermissionGroup.photos
'PERMISSION_PHOTOS=1',
## dartPermissionGroup.photosAddOnly
'PERMISSION_PHOTOS_ADD_ONLY=1',
## dart: PermissionGroup.appTrackingTransparency
'PERMISSION_APP_TRACKING_TRANSPARENCY=1',
]
end
end
end

View File

@ -14,6 +14,8 @@
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
E0394F2D1242D3E25BEE1101 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC49B9B0033C4ED6FF21BA48 /* Pods_RunnerTests.framework */; };
F27886AB02FF62E29D29151A /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 48A90D609A09C0FED35B9E09 /* Pods_Runner.framework */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -40,11 +42,14 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
11C559BC8FD797B93B4E8E43 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
2294D20D50E26C2A689F2E85 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
48A90D609A09C0FED35B9E09 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
@ -55,6 +60,11 @@
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
BD222BC43759967F7576B8D6 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
CC49B9B0033C4ED6FF21BA48 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D206D768E63BA5AB4E121075 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
D8F362FD1A0909B80027D3C0 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
EC927AF1737684F796D3BE45 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -62,6 +72,15 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F27886AB02FF62E29D29151A /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
F44B8F11E5AFA7C9EE872EE4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E0394F2D1242D3E25BEE1101 /* Pods_RunnerTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -94,6 +113,8 @@
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
331C8082294A63A400263BE5 /* RunnerTests */,
BF9BDC43F67978E918B0EBA4 /* Pods */,
9CD53902CA93F44E48070FAB /* Frameworks */,
);
sourceTree = "<group>";
};
@ -121,6 +142,28 @@
path = Runner;
sourceTree = "<group>";
};
9CD53902CA93F44E48070FAB /* Frameworks */ = {
isa = PBXGroup;
children = (
48A90D609A09C0FED35B9E09 /* Pods_Runner.framework */,
CC49B9B0033C4ED6FF21BA48 /* Pods_RunnerTests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
BF9BDC43F67978E918B0EBA4 /* Pods */ = {
isa = PBXGroup;
children = (
BD222BC43759967F7576B8D6 /* Pods-Runner.debug.xcconfig */,
11C559BC8FD797B93B4E8E43 /* Pods-Runner.release.xcconfig */,
EC927AF1737684F796D3BE45 /* Pods-Runner.profile.xcconfig */,
2294D20D50E26C2A689F2E85 /* Pods-RunnerTests.debug.xcconfig */,
D8F362FD1A0909B80027D3C0 /* Pods-RunnerTests.release.xcconfig */,
D206D768E63BA5AB4E121075 /* Pods-RunnerTests.profile.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@ -128,8 +171,10 @@
isa = PBXNativeTarget;
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
buildPhases = (
6F818D4F9C669F66C4AB76D9 /* [CP] Check Pods Manifest.lock */,
331C807D294A63A400263BE5 /* Sources */,
331C807F294A63A400263BE5 /* Resources */,
F44B8F11E5AFA7C9EE872EE4 /* Frameworks */,
);
buildRules = (
);
@ -145,12 +190,15 @@
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
F8C92AC4E9B9518371F23743 /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
9815AB21B06A82C551A93B25 /* [CP] Embed Pods Frameworks */,
1E91BE67C9E2718A4BB85BCB /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@ -222,6 +270,23 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
1E91BE67C9E2718A4BB85BCB /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
showEnvVarsInLog = 0;
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
@ -238,6 +303,28 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
6F818D4F9C669F66C4AB76D9 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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;
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
@ -253,6 +340,45 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
9815AB21B06A82C551A93B25 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
F8C92AC4E9B9518371F23743 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@ -361,23 +487,33 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 34W9G5KLNH;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.popular.wallpaperx;
PRODUCT_BUNDLE_IDENTIFIER = com.ai.wallpaper.genie;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
VERSIONING_SYSTEM = "apple-generic";
};
name = Profile;
};
331C8088294A63A400263BE5 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 2294D20D50E26C2A689F2E85 /* Pods-RunnerTests.debug.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
@ -395,6 +531,7 @@
};
331C8089294A63A400263BE5 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = D8F362FD1A0909B80027D3C0 /* Pods-RunnerTests.release.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
@ -410,6 +547,7 @@
};
331C808A294A63A400263BE5 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = D206D768E63BA5AB4E121075 /* Pods-RunnerTests.profile.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
@ -540,18 +678,27 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 34W9G5KLNH;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.popular.wallpaperx;
PRODUCT_BUNDLE_IDENTIFIER = com.ai.wallpaper.genie;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
@ -562,17 +709,26 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = 34W9G5KLNH;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.popular.wallpaperx;
PRODUCT_BUNDLE_IDENTIFIER = com.ai.wallpaper.genie;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;

View File

@ -4,4 +4,7 @@
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 522 KiB

After

Width:  |  Height:  |  Size: 503 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1009 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1,23 +1,23 @@
{
"images" : [
{
"filename" : "launcher_image.png",
"idiom" : "universal",
"filename" : "LaunchImage.png",
"scale" : "1x"
},
{
"filename" : "launcher_image@2x.png",
"idiom" : "universal",
"filename" : "LaunchImage@2x.png",
"scale" : "2x"
},
{
"filename" : "launcher_image@3x.png",
"idiom" : "universal",
"filename" : "LaunchImage@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

View File

@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
@ -14,24 +16,28 @@
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
<constraint firstAttribute="bottom" secondItem="YRO-k0-Ey4" secondAttribute="bottom" id="5oD-V6-8YQ"/>
<constraint firstAttribute="trailing" secondItem="YRO-k0-Ey4" secondAttribute="trailing" id="AnF-JG-fXu"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="NRW-nv-8Ld"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="qOT-Bb-MZK"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
<point key="canvasLocation" x="80.152671755725194" y="264.08450704225356"/>
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="168" height="185"/>
<image name="LaunchImage" width="375" height="812"/>
</resources>
</document>

View File

@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
@ -14,13 +16,14 @@
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-26" y="-76"/>
</scene>
</scenes>
</document>

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>AIzaSyCtr6QK7ixiotqBo4BlzoyS1X6ABMWni9E</string>
<key>GCM_SENDER_ID</key>
<string>154597733455</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.ai.wallpaper.genie</string>
<key>PROJECT_ID</key>
<string>wallpaper-genie-ios</string>
<key>STORAGE_BUCKET</key>
<string>wallpaper-genie-ios.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:154597733455:ios:d1981e1a0bcc03dab6663a</string>
</dict>
</plist>

View File

@ -2,10 +2,12 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Wallpaperx</string>
<string>Wallpaper Genie</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
@ -13,7 +15,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>wallpaperx</string>
<string>wallpaper_genie</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
@ -24,10 +26,19 @@
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>We need access to your photo album so you can save wallpapers from the app to your album</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>We need access to your photo album so you can save wallpapers from the app to your album</string>
<string>We need access to your photo album so you can save wallpapers from the app to your album</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>We need access to your photo album so you can save wallpapers from the app to your album</string>
<key>NSUserTrackingUsageDescription</key>
<string>We need your permission to access the advertising identifier to provide better ad services.</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
@ -45,9 +56,5 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>

View File

@ -38,8 +38,8 @@ class BaseAppBar extends StatelessWidget implements PreferredSizeWidget {
onTap: onBackTap ??
() {
Get.back();
ApplovinManage()
.showAdIfReady(ApplovinManage().adUnitId3);
// ApplovinManage()
// .showAdIfReady(ApplovinManage().adUnitId3);
},
child: Padding(
padding: const EdgeInsets.all(10).w,

View File

@ -48,7 +48,7 @@ class NestedBottomBar extends StatelessWidget implements PreferredSizeWidget {
child: InkWell(
onTap: onBackTap ?? () {
Get.back();
ApplovinManage().showAdIfReady(ApplovinManage().adUnitId3);
// ApplovinManage().showAdIfReady(ApplovinManage().adUnitId3);
},
child: Icon(Icons.close,color: Colors.white,size: 24.sp),
),

View File

@ -42,6 +42,7 @@ class HttpUtil {
LogPrint.d("e: $e");
showError("Server error");
dismiss(dismiss: true);
errorCallback!(e);
}
}

View File

@ -1,7 +1,7 @@
class Url {
Url._();
static const String HOST = 'http://192.168.40.8:8001';
static const String HOST = 'http://185.14.47.106:8001';
//
static const String getImages = "$HOST/images";

View File

@ -0,0 +1,49 @@
// Author: fengshengxiong
// Date: 2024/6/26
// Description:
import 'dart:async';
import 'dart:io';
import 'package:app_tracking_transparency/app_tracking_transparency.dart';
class AppTrackingTransparencyManager {
AppTrackingTransparencyManager._();
static final AppTrackingTransparencyManager _instance = AppTrackingTransparencyManager._();
factory AppTrackingTransparencyManager() {
return _instance;
}
Timer? _timer;
///
Future<void> requestATT() async {
if (Platform.isIOS) {
final TrackingStatus status = await AppTrackingTransparency.trackingAuthorizationStatus;
if (status == TrackingStatus.notDetermined) {
if (_timer != null && _timer!.isActive) {
final TrackingStatus status = await AppTrackingTransparency.requestTrackingAuthorization();
} else {
_startTimer();
}
} else {
_stopTimer();
}
}
}
///
void _startTimer() {
_timer = Timer.periodic(const Duration(seconds: 3), (Timer t) {
requestATT();
});
}
///
void _stopTimer() {
_timer?.cancel();
_timer = null;
}
}

View File

@ -0,0 +1,24 @@
// Author: fengshengxiong
// Date: 2024/6/26
// Description: firebase_analytics管理
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
import 'package:flutter/foundation.dart';
class FirebaseAnalyticsManager {
///
static Future<void> setCrashlyticsCollectionEnabled() async {
await FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(!kDebugMode);
}
///
/// name
/// parameters
static void logEvent(String eventName, {Map<String, Object>? parameters}) {
FirebaseAnalytics.instance.logEvent(
name: eventName,
parameters: parameters,
);
}
}

View File

@ -0,0 +1,69 @@
// File generated by FlutterFire CLI.
// ignore_for_file: type=lint
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
/// Default [FirebaseOptions] for use with your Firebase apps.
///
/// Example:
/// ```dart
/// import 'firebase_options.dart';
/// // ...
/// await Firebase.initializeApp(
/// options: DefaultFirebaseOptions.currentPlatform,
/// );
/// ```
class DefaultFirebaseOptions {
static FirebaseOptions get currentPlatform {
if (kIsWeb) {
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for web - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
}
switch (defaultTargetPlatform) {
// case TargetPlatform.android:
// return android;
case TargetPlatform.iOS:
return ios;
case TargetPlatform.macOS:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for macos - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
case TargetPlatform.windows:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for windows - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
case TargetPlatform.linux:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for linux - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
default:
throw UnsupportedError(
'DefaultFirebaseOptions are not supported for this platform.',
);
}
}
// static const FirebaseOptions android = FirebaseOptions(
// apiKey: 'AIzaSyDP6CpkN3HMpCofXlToug-hadYpTLEgE0E',
// appId: '1:318284530945:android:c7dd2abf520a9840250700',
// messagingSenderId: '318284530945',
// projectId: 'nowwallpaper',
// storageBucket: 'nowwallpaper.appspot.com',
// );
static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'AIzaSyCtr6QK7ixiotqBo4BlzoyS1X6ABMWni9E',
appId: '1:154597733455:ios:d1981e1a0bcc03dab6663a',
messagingSenderId: '154597733455',
projectId: 'wallpaper-genie-ios',
storageBucket: 'wallpaper-genie-ios.appspot.com',
iosBundleId: 'com.ai.wallpaper.genie',
);
}

View File

@ -2,7 +2,7 @@
class Assets {
Assets._();
static const String iconIconApp = 'assets/icon/icon_app.jpeg';
static const String iconIconApp = 'assets/icon/icon_app.png';
static const String imagesCatalogSelected = 'assets/images/catalog_selected.png';
static const String imagesCatalogUnchecked = 'assets/images/catalog_unchecked.png';
static const String imagesDiscoverSelected = 'assets/images/discover_selected.png';

70
lib/generated/assets.dart Normal file
View File

@ -0,0 +1,70 @@
///This file is automatically generated. DO NOT EDIT, all your changes would be lost.
class Assets {
Assets._();
static const String avatar1 = 'assets/avatar/1.png';
static const String avatar2 = 'assets/avatar/2.png';
static const String avatar3 = 'assets/avatar/3.png';
static const String avatar4 = 'assets/avatar/4.png';
static const String avatar5 = 'assets/avatar/5.png';
static const String categoryCategory1 = 'assets/category/category1.png';
static const String categoryCategory2 = 'assets/category/category2.png';
static const String categoryCategory3 = 'assets/category/category3.png';
static const String categoryCategory4 = 'assets/category/category4.png';
static const String categoryCategory5 = 'assets/category/category5.png';
static const String categoryCategory6 = 'assets/category/category6.png';
static const String categoryCategory7 = 'assets/category/category7.png';
static const String categoryCategory8 = 'assets/category/category8.png';
static const String iconIconApp = 'assets/icon/icon_app.png';
static const String imagesBackIcon = 'assets/images/back_icon.png';
static const String imagesCatalogSelected = 'assets/images/catalog_selected.png';
static const String imagesCatalogUnchecked = 'assets/images/catalog_unchecked.png';
static const String imagesDiscoverBackground = 'assets/images/discover_background.png';
static const String imagesDiscoverDown = 'assets/images/discover_down.png';
static const String imagesDiscoverGroup = 'assets/images/discover_group.png';
static const String imagesDiscoverSearch = 'assets/images/discover_search.png';
static const String imagesDiscoverSelected = 'assets/images/discover_selected.png';
static const String imagesDiscoverUnchecked = 'assets/images/discover_unchecked.png';
static const String imagesDiscoverUp = 'assets/images/discover_up.png';
static const String imagesErrorLoading = 'assets/images/error_loading.png';
static const String imagesFavoriteSelected = 'assets/images/favorite_selected.png';
static const String imagesFavoriteUnchecked = 'assets/images/favorite_unchecked.png';
static const String imagesGenieAiBackground1 = 'assets/images/genie_ai_background1.png';
static const String imagesGenieAiBackground2 = 'assets/images/genie_ai_background2.png';
static const String imagesHomeBackground = 'assets/images/home_background.png';
static const String imagesIcBack = 'assets/images/ic_back.png';
static const String imagesIcCfgScale = 'assets/images/ic_cfg_scale.png';
static const String imagesIcDownload = 'assets/images/ic_download.png';
static const String imagesIcFavorite = 'assets/images/ic_favorite.png';
static const String imagesIcFiltered = 'assets/images/ic_filtered.png';
static const String imagesIcImgDelBack = 'assets/images/ic_img_del_back.png';
static const String imagesIcImgDelTip = 'assets/images/ic_img_del_tip.png';
static const String imagesIcImgInfo = 'assets/images/ic_img_info.png';
static const String imagesIcPreview = 'assets/images/ic_preview.png';
static const String imagesIcSampler = 'assets/images/ic_sampler.png';
static const String imagesIcSeed = 'assets/images/ic_seed.png';
static const String imagesIcSettingArrow = 'assets/images/ic_setting_arrow.png';
static const String imagesIcSettings = 'assets/images/ic_settings.png';
static const String imagesIcSteps = 'assets/images/ic_steps.png';
static const String imagesIcUnFavorite = 'assets/images/ic_un_favorite.png';
static const String imagesImgError = 'assets/images/img_error.png';
static const String imagesImgPlaceholder = 'assets/images/img_placeholder.png';
static const String imagesNoDataAvailable = 'assets/images/no_data_available.png';
static const String imagesPlaceholder = 'assets/images/placeholder.jpg';
static const String imagesPutItAway = 'assets/images/put_it_away.png';
static const String imagesSearchBottom = 'assets/images/search_bottom.png';
static const String imagesSearchBottomRight = 'assets/images/search_bottom_right.png';
static const String imagesSearchIcon = 'assets/images/search_icon.png';
static const String imagesSearchLongRight = 'assets/images/search_long_right.png';
static const String imagesSearchTop = 'assets/images/search_top.png';
static const String imagesSelectedIcon = 'assets/images/selected_icon.png';
static const String imagesSettingBackground = 'assets/images/setting_background.png';
static const String imagesSettingSelected = 'assets/images/setting_selected.png';
static const String imagesSettingUnchecked = 'assets/images/setting_unchecked.png';
static const String imagesStarsL = 'assets/images/stars_l.png';
static const String imagesStarsM = 'assets/images/stars_m.png';
static const String imagesStarsS = 'assets/images/stars_s.png';
static const String imagesViewMore = 'assets/images/view_more.png';
static const String jsonLuxWallpaper = 'assets/json/lux_wallpaper.json';
}

View File

@ -1,6 +1,9 @@
import 'dart:io';
import 'dart:ui';
import 'package:bot_toast/bot_toast.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
@ -11,6 +14,7 @@ import 'package:wallpaperx/common/components/easy_loading.dart';
import 'package:wallpaperx/common/storage/hive_storage.dart';
import 'package:wallpaperx/common/utils/log_print.dart';
import 'package:wallpaperx/common/utils/shared_util.dart';
import 'package:wallpaperx/firebase/firebase_options.dart';
import 'package:wallpaperx/res/themes/app_themes.dart';
import 'package:wallpaperx/res/values/strings.dart';
import 'package:wallpaperx/routes/app_pages.dart';
@ -18,6 +22,27 @@ import 'package:wallpaperx/routes/app_pages.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Firebase
try {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
debugPrint("Firebase initialization OK");
} catch (e) {
debugPrint("Firebase initialization error: $e");
}
//
FlutterError.onError = (errorDetails) {
FirebaseCrashlytics.instance.recordFlutterError(errorDetails);
};
//
PlatformDispatcher.instance.onError = (error, stack) {
FirebaseCrashlytics.instance.recordError(error, stack, fatal: false);
return true;
};
//
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
@ -25,7 +50,7 @@ void main() async {
]);
// 广sdk
await ApplovinManage().initApplovin();
// await ApplovinManage().initApplovin();
// Hive
await initHive();
@ -71,7 +96,7 @@ class MyApp extends StatelessWidget {
theme: lightTheme,
themeMode: ThemeMode.dark,
getPages: AppPages.routes,
initialRoute: AppPages.splashScreen,
initialRoute: AppPages.home,
builder: (context, widget) {
widget = easyLoading(context, widget);
child = botToastBuilder(context,widget);

View File

@ -1,3 +1,4 @@
import 'dart:async';
import 'dart:convert';
import 'package:easy_refresh/easy_refresh.dart';
@ -28,6 +29,8 @@ class DiscoverController extends GetxController {
int skip = 0;
int limit = 20;
Timer? _timer;
@override
void onInit() {
super.onInit();
@ -36,6 +39,12 @@ class DiscoverController extends GetxController {
getImages();
}
///
void _stopTimer() {
_timer?.cancel();
_timer = null;
}
@override
void onClose() {
super.onClose();
@ -64,7 +73,12 @@ class DiscoverController extends GetxController {
} else {
viewState = ViewState.empty.obs;
}
_stopTimer();
}
},errorCallback: (e) {
_timer ??= Timer.periodic(const Duration(seconds: 2), (Timer t) {
getImages();
});
}, params: {"limit": limit, "skip": skip, "tags": tags.join(",")});
}

View File

@ -3,6 +3,7 @@ import 'package:get/get.dart';
import 'package:wallpaperx/applovin_max/applovin_manage.dart';
import 'package:wallpaperx/common/components/view_state_widget.dart';
import 'package:wallpaperx/common/utils/shared_util.dart';
import 'package:wallpaperx/config/app_tracking_transparency_manager.dart';
import 'package:wallpaperx/entity/userinfo_model.dart';
import 'package:wallpaperx/gen/assets.dart';
import 'package:wallpaperx/page/discover/discover_view.dart';
@ -66,6 +67,7 @@ class HomeController extends GetxController with WidgetsBindingObserver {
getUserInfo();
WidgetsBinding.instance.addObserver(this);
pageController = PageController(initialPage: currentIndex.value);
AppTrackingTransparencyManager().requestATT();
}
@override
@ -84,7 +86,7 @@ class HomeController extends GetxController with WidgetsBindingObserver {
Future<void> didChangeAppLifecycleState(AppLifecycleState state) async {
switch (state) {
case AppLifecycleState.resumed:
await ApplovinManage().showAdIfReady(ApplovinManage().adUnitId1);
// await ApplovinManage().showAdIfReady(ApplovinManage().adUnitId1);
break;
case AppLifecycleState.inactive:
case AppLifecycleState.hidden:
@ -106,7 +108,7 @@ class HomeController extends GetxController with WidgetsBindingObserver {
/// BottomNavigationBar
void onTapNavigationBar(int index) {
pageController.jumpToPage(index);
ApplovinManage().showAdIfReady(ApplovinManage().adUnitId1);
// ApplovinManage().showAdIfReady(ApplovinManage().adUnitId1);
}
///

View File

@ -16,11 +16,11 @@ import 'package:wallpaperx/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 privacyUrlAndroid = 'https://wallpapergenie.mystrikingly.com/privacy';
final termsUrlAndroid = 'https://wallpapergenie.mystrikingly.com/terms';
final privacyUrlIOS = 'https://nowwallpaper.mystrikingly.com/privacy';
final termsUrlIOS = 'https://nowwallpaper.mystrikingly.com/terms';
final privacyUrlIOS = 'https://wallpapergenie.mystrikingly.com/privacy';
final termsUrlIOS = 'https://wallpapergenie.mystrikingly.com/terms';
final options = [
'AI preferences',

View File

@ -11,7 +11,7 @@ class SplashScreenController extends GetxController {
@override
void onInit() {
super.onInit();
ApplovinManage().initializeInterstitialAds(onGoHomeTap: _openHomePage);
// ApplovinManage().initializeInterstitialAds(onGoHomeTap: _openHomePage);
_startTimer();
}

View File

@ -100,7 +100,9 @@ class WallpaperDetController extends GetxController {
);
}
if (canSave) {
final result = await ImageGallerySaver.saveFile(savePath);
final result = await ImageGallerySaver.saveImage(File(filePath).readAsBytesSync());
LogPrint.d(savePath);
LogPrint.d(result);
if (result['isSuccess']) {
toast('Saved to album');
} else {
@ -154,7 +156,7 @@ class WallpaperDetController extends GetxController {
///
void onTapSetWallpaper() async {
await ApplovinManage().showAdIfReady(ApplovinManage().adUnitId2);
// await ApplovinManage().showAdIfReady(ApplovinManage().adUnitId2);
BottomSheetDialog.show((location) async {
if (ObjUtil.isNotEmptyStr(filePath)) {
WallpaperManage.setWallpaper(filePath, location);
@ -191,6 +193,6 @@ class WallpaperDetController extends GetxController {
/// 广
void showAd() {
Get.back();
ApplovinManage().showAdIfReady(ApplovinManage().adUnitId3);
// ApplovinManage().showAdIfReady(ApplovinManage().adUnitId3);
}
}

View File

@ -154,7 +154,7 @@ class WallpaperDetV2Controller extends GetxController {
///
void onTapSetWallpaper() async {
await ApplovinManage().showAdIfReady(ApplovinManage().adUnitId2);
// await ApplovinManage().showAdIfReady(ApplovinManage().adUnitId2);
BottomSheetDialog.show((location) async {
if (ObjUtil.isNotEmptyStr(filePath)) {
WallpaperManage.setWallpaper(filePath, location);
@ -191,6 +191,6 @@ class WallpaperDetV2Controller extends GetxController {
/// 广
void showAd() {
Get.back();
ApplovinManage().showAdIfReady(ApplovinManage().adUnitId3);
// ApplovinManage().showAdIfReady(ApplovinManage().adUnitId3);
}
}

View File

@ -72,11 +72,11 @@ class AppPages {
static const feedBack = '/feed_back';
static final routes = [
GetPage(
name: splashScreen,
page: () => const SplashScreenView(),
binding: SplashScreenBinding(),
),
// GetPage(
// name: splashScreen,
// page: () => const SplashScreenView(),
// binding: SplashScreenBinding(),
// ),
GetPage(
name: home,
page: () => const HomeView(),

View File

@ -2,7 +2,7 @@ name: wallpaperx
description: "A new Flutter project."
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.1+1
version: 1.0.2+2
environment:
sdk: '>=3.4.3 <4.0.0'
@ -99,6 +99,7 @@ dependencies:
# 动态边框
# flutter_colors_border: ^0.0.4
flip_card: ^0.7.0
app_tracking_transparency: ^2.0.5
# Firebase
firebase_core: ^2.32.0
@ -108,7 +109,7 @@ dependencies:
flutter_launcher_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icon/icon_app.jpeg"
image_path: "assets/icon/icon_app.png"
min_sdk_android: 21 # android min sdk min:16, default 21
dev_dependencies: