修改包名。

This commit is contained in:
ocean 2025-03-02 18:16:16 +08:00
parent 31bc40bdee
commit 10ac96be6a
33 changed files with 147 additions and 89 deletions

3
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

1
.idea/.name generated Normal file
View File

@ -0,0 +1 @@
Cool Wallpaper

6
.idea/compiler.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="17" />
</component>
</project>

10
.idea/deploymentTargetSelector.xml generated Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetSelector">
<selectionStates>
<SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" />
</SelectionState>
</selectionStates>
</component>
</project>

19
.idea/gradle.xml generated Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveExternalAnnotations" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>

10
.idea/migrations.xml generated Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectMigrations">
<option name="MigrateToGradleLocalJavaHome">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
</component>
</project>

10
.idea/misc.xml generated Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

6
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -6,11 +6,11 @@ plugins {
} }
val timestamp: String = SimpleDateFormat("MM_dd_HH_mm").format(Date()) val timestamp: String = SimpleDateFormat("MM_dd_HH_mm").format(Date())
android { android {
namespace = "com.wallpaper.coolwallpaper" namespace = "com.free.coolwallpaper"
compileSdk = 35 compileSdk = 35
defaultConfig { defaultConfig {
applicationId = "com.wallpaper.coolwallpaper" applicationId = "com.free.coolwallpaper"
minSdk = 23 minSdk = 23
targetSdk = 35 targetSdk = 35
versionCode = 1 versionCode = 1

View File

@ -20,7 +20,7 @@
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile #-renamesourcefileattribute SourceFile
-keepclassmembers class com.wallpaper.coolwallpaper.MyApplication { -keepclassmembers class com.free.coolwallpaper.MyApplication {
public static final java.lang.String DB_NAME; public static final java.lang.String DB_NAME;
public static final int DB_VERSION; public static final int DB_VERSION;
} }
@ -29,7 +29,7 @@
@androidx.room.Query <methods>; @androidx.room.Query <methods>;
} }
-keep class com.wallpaper.coolwallpaper.database.AppDatabase { *; } -keep class com.free.coolwallpaper.database.AppDatabase { *; }
-keep class com.wallpaper.coolwallpaper.database.CoolEntity { *; } -keep class com.free.coolwallpaper.database.CoolEntity { *; }
-keep class com.wallpaper.coolwallpaper.database.CoolEntityDao { *; } -keep class com.free.coolwallpaper.database.CoolEntityDao { *; }
-keep class com.wallpaper.coolwallpaper.database.CategoryList { *; } -keep class com.free.coolwallpaper.database.CategoryList { *; }

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper; package com.free.coolwallpaper;
import android.content.Context; import android.content.Context;

View File

@ -1,12 +1,12 @@
package com.wallpaper.coolwallpaper; package com.free.coolwallpaper;
import android.app.Application; import android.app.Application;
import android.content.Context; import android.content.Context;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import com.wallpaper.coolwallpaper.database.CategoryList; import com.free.coolwallpaper.database.CategoryList;
import com.wallpaper.coolwallpaper.util.JsonParse; import com.free.coolwallpaper.util.JsonParse;
import com.wallpaper.coolwallpaper.util.RoomUtils; import com.free.coolwallpaper.util.RoomUtils;
import java.util.List; import java.util.List;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;

View File

@ -1,6 +1,6 @@
package com.wallpaper.coolwallpaper.activity; package com.free.coolwallpaper.activity;
import static com.wallpaper.coolwallpaper.util.SetAndDownloadUtils.REQUEST_CODE_WRITE_EXTERNAL_STORAGE; import static com.free.coolwallpaper.util.SetAndDownloadUtils.REQUEST_CODE_WRITE_EXTERNAL_STORAGE;
import android.app.WallpaperManager; import android.app.WallpaperManager;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
@ -17,7 +17,6 @@ import android.widget.Toast;
import androidx.activity.EdgeToEdge; import androidx.activity.EdgeToEdge;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import androidx.core.view.ViewCompat; import androidx.core.view.ViewCompat;
@ -27,12 +26,12 @@ import com.bumptech.glide.Glide;
import com.bumptech.glide.request.target.CustomTarget; import com.bumptech.glide.request.target.CustomTarget;
import com.bumptech.glide.request.transition.Transition; import com.bumptech.glide.request.transition.Transition;
import com.google.android.material.bottomsheet.BottomSheetDialog; import com.google.android.material.bottomsheet.BottomSheetDialog;
import com.wallpaper.coolwallpaper.R; import com.free.coolwallpaper.R;
import com.wallpaper.coolwallpaper.callback.DownloadCallback; import com.free.coolwallpaper.callback.DownloadCallback;
import com.wallpaper.coolwallpaper.database.CoolEntity; import com.free.coolwallpaper.database.CoolEntity;
import com.wallpaper.coolwallpaper.databinding.ActivityDetailBinding; import com.free.coolwallpaper.databinding.ActivityDetailBinding;
import com.wallpaper.coolwallpaper.util.SetAndDownloadUtils; import com.free.coolwallpaper.util.SetAndDownloadUtils;
import com.wallpaper.coolwallpaper.util.RoomUtils; import com.free.coolwallpaper.util.RoomUtils;
import java.io.IOException; import java.io.IOException;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.activity; package com.free.coolwallpaper.activity;
import android.os.Bundle; import android.os.Bundle;
import android.view.LayoutInflater; import android.view.LayoutInflater;
@ -12,10 +12,10 @@ import androidx.core.view.WindowInsetsCompat;
import com.google.android.material.tabs.TabLayout; import com.google.android.material.tabs.TabLayout;
import com.google.android.material.tabs.TabLayoutMediator; import com.google.android.material.tabs.TabLayoutMediator;
import com.wallpaper.coolwallpaper.R; import com.free.coolwallpaper.R;
import com.wallpaper.coolwallpaper.adapter.MainAdapter; import com.free.coolwallpaper.adapter.MainAdapter;
import com.wallpaper.coolwallpaper.databinding.ActivityMainBinding; import com.free.coolwallpaper.databinding.ActivityMainBinding;
import com.wallpaper.coolwallpaper.databinding.TabLayoutBinding; import com.free.coolwallpaper.databinding.TabLayoutBinding;
public class MainActivity extends AppCompatActivity { public class MainActivity extends AppCompatActivity {
private ActivityMainBinding binding; private ActivityMainBinding binding;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.activity; package com.free.coolwallpaper.activity;
import android.os.Bundle; import android.os.Bundle;
import android.widget.Toast; import android.widget.Toast;
@ -11,12 +11,12 @@ import androidx.core.view.WindowInsetsCompat;
import androidx.lifecycle.Observer; import androidx.lifecycle.Observer;
import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview.widget.GridLayoutManager;
import com.wallpaper.coolwallpaper.R; import com.free.coolwallpaper.R;
import com.wallpaper.coolwallpaper.adapter.WallpaperAdapter; import com.free.coolwallpaper.adapter.WallpaperAdapter;
import com.wallpaper.coolwallpaper.database.CoolEntity; import com.free.coolwallpaper.database.CoolEntity;
import com.wallpaper.coolwallpaper.databinding.ActivitySubListBinding; import com.free.coolwallpaper.databinding.ActivitySubListBinding;
import com.wallpaper.coolwallpaper.util.ItemDecoration; import com.free.coolwallpaper.util.ItemDecoration;
import com.wallpaper.coolwallpaper.util.RoomUtils; import com.free.coolwallpaper.util.RoomUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.activity; package com.free.coolwallpaper.activity;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
@ -13,8 +13,8 @@ import androidx.core.view.WindowInsetsCompat;
import com.bumptech.glide.Glide; import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners; import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.wallpaper.coolwallpaper.R; import com.free.coolwallpaper.R;
import com.wallpaper.coolwallpaper.databinding.ActivityWelcomeBinding; import com.free.coolwallpaper.databinding.ActivityWelcomeBinding;
public class WelcomeActivity extends AppCompatActivity { public class WelcomeActivity extends AppCompatActivity {
private ActivityWelcomeBinding binding; private ActivityWelcomeBinding binding;

View File

@ -1,12 +1,12 @@
package com.wallpaper.coolwallpaper.adapter; package com.free.coolwallpaper.adapter;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity; import androidx.fragment.app.FragmentActivity;
import androidx.viewpager2.adapter.FragmentStateAdapter; import androidx.viewpager2.adapter.FragmentStateAdapter;
import com.wallpaper.coolwallpaper.fragment.HomeFragment; import com.free.coolwallpaper.fragment.HomeFragment;
import com.wallpaper.coolwallpaper.fragment.CollectionFragment; import com.free.coolwallpaper.fragment.CollectionFragment;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.adapter; package com.free.coolwallpaper.adapter;
import android.app.Activity; import android.app.Activity;
import android.content.Context; import android.content.Context;
@ -14,9 +14,9 @@ import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide; import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners; import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.wallpaper.coolwallpaper.R; import com.free.coolwallpaper.R;
import com.wallpaper.coolwallpaper.activity.SubListActivity; import com.free.coolwallpaper.activity.SubListActivity;
import com.wallpaper.coolwallpaper.database.CoolEntity; import com.free.coolwallpaper.database.CoolEntity;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.adapter; package com.free.coolwallpaper.adapter;
import android.app.Activity; import android.app.Activity;
import android.content.Context; import android.content.Context;
@ -13,10 +13,10 @@ import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide; import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners; import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.wallpaper.coolwallpaper.R; import com.free.coolwallpaper.R;
import com.wallpaper.coolwallpaper.activity.DetailActivity; import com.free.coolwallpaper.activity.DetailActivity;
import com.wallpaper.coolwallpaper.database.AppDatabase; import com.free.coolwallpaper.database.AppDatabase;
import com.wallpaper.coolwallpaper.database.CoolEntity; import com.free.coolwallpaper.database.CoolEntity;
import java.util.List; import java.util.List;
import java.util.concurrent.Executor; import java.util.concurrent.Executor;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.callback; package com.free.coolwallpaper.callback;
import android.net.Uri; import android.net.Uri;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.database; package com.free.coolwallpaper.database;
import android.content.Context; import android.content.Context;
@ -6,7 +6,7 @@ import androidx.room.Database;
import androidx.room.Room; import androidx.room.Room;
import androidx.room.RoomDatabase; import androidx.room.RoomDatabase;
import com.wallpaper.coolwallpaper.MyApplication; import com.free.coolwallpaper.MyApplication;
@Database(entities = {CoolEntity.class}, version = MyApplication.DB_VERSION, exportSchema = false) @Database(entities = {CoolEntity.class}, version = MyApplication.DB_VERSION, exportSchema = false)
public abstract class AppDatabase extends RoomDatabase { public abstract class AppDatabase extends RoomDatabase {

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.database; package com.free.coolwallpaper.database;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.database; package com.free.coolwallpaper.database;
import androidx.room.Entity; import androidx.room.Entity;
import androidx.room.PrimaryKey; import androidx.room.PrimaryKey;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.database; package com.free.coolwallpaper.database;
import androidx.lifecycle.LiveData; import androidx.lifecycle.LiveData;
import androidx.room.Dao; import androidx.room.Dao;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.fragment; package com.free.coolwallpaper.fragment;
import android.os.Bundle; import android.os.Bundle;
@ -10,12 +10,11 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.wallpaper.coolwallpaper.adapter.SubListAdapter; import com.free.coolwallpaper.adapter.WallpaperAdapter;
import com.wallpaper.coolwallpaper.adapter.WallpaperAdapter; import com.free.coolwallpaper.database.CoolEntity;
import com.wallpaper.coolwallpaper.database.CoolEntity; import com.free.coolwallpaper.databinding.FragmentCollectionBinding;
import com.wallpaper.coolwallpaper.databinding.FragmentCollectionBinding; import com.free.coolwallpaper.util.ItemDecoration;
import com.wallpaper.coolwallpaper.util.ItemDecoration; import com.free.coolwallpaper.util.RoomUtils;
import com.wallpaper.coolwallpaper.util.RoomUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.fragment; package com.free.coolwallpaper.fragment;
import android.os.Bundle; import android.os.Bundle;
import android.view.LayoutInflater; import android.view.LayoutInflater;
@ -9,11 +9,11 @@ import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer; import androidx.lifecycle.Observer;
import androidx.recyclerview.widget.GridLayoutManager; import androidx.recyclerview.widget.GridLayoutManager;
import com.wallpaper.coolwallpaper.adapter.SubListAdapter; import com.free.coolwallpaper.adapter.SubListAdapter;
import com.wallpaper.coolwallpaper.database.CoolEntity; import com.free.coolwallpaper.database.CoolEntity;
import com.wallpaper.coolwallpaper.databinding.FragmentHomeBinding; import com.free.coolwallpaper.databinding.FragmentHomeBinding;
import com.wallpaper.coolwallpaper.util.ItemDecoration; import com.free.coolwallpaper.util.ItemDecoration;
import com.wallpaper.coolwallpaper.util.RoomUtils; import com.free.coolwallpaper.util.RoomUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.util; package com.free.coolwallpaper.util;
import android.graphics.Rect; import android.graphics.Rect;
import android.view.View; import android.view.View;
@ -9,7 +9,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager; import androidx.recyclerview.widget.StaggeredGridLayoutManager;
import com.wallpaper.coolwallpaper.MyApplication; import com.free.coolwallpaper.MyApplication;
public class ItemDecoration extends RecyclerView.ItemDecoration { public class ItemDecoration extends RecyclerView.ItemDecoration {

View File

@ -1,10 +1,10 @@
package com.wallpaper.coolwallpaper.util; package com.free.coolwallpaper.util;
import android.util.Log; import android.util.Log;
import com.wallpaper.coolwallpaper.MyApplication; import com.free.coolwallpaper.MyApplication;
import com.wallpaper.coolwallpaper.database.CategoryList; import com.free.coolwallpaper.database.CategoryList;
import com.wallpaper.coolwallpaper.database.CoolEntity; import com.free.coolwallpaper.database.CoolEntity;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,14 +1,13 @@
package com.wallpaper.coolwallpaper.util; package com.free.coolwallpaper.util;
import android.content.Context; import android.content.Context;
import androidx.lifecycle.LiveData; import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import com.wallpaper.coolwallpaper.database.AppDatabase; import com.free.coolwallpaper.database.AppDatabase;
import com.wallpaper.coolwallpaper.database.CategoryList; import com.free.coolwallpaper.database.CategoryList;
import com.wallpaper.coolwallpaper.database.CoolEntity; import com.free.coolwallpaper.database.CoolEntity;
import com.wallpaper.coolwallpaper.database.CoolEntityDao; import com.free.coolwallpaper.database.CoolEntityDao;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper.util; package com.free.coolwallpaper.util;
import android.app.Activity; import android.app.Activity;
import android.content.ContentValues; import android.content.ContentValues;
@ -6,15 +6,11 @@ import android.content.pm.PackageManager;
import android.net.Uri; import android.net.Uri;
import android.os.Build; import android.os.Build;
import android.provider.MediaStore; import android.provider.MediaStore;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.Toast;
import androidx.core.app.ActivityCompat; import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.wallpaper.coolwallpaper.callback.DownloadCallback; import com.free.coolwallpaper.callback.DownloadCallback;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;

View File

@ -1,4 +1,4 @@
package com.wallpaper.coolwallpaper; package com.free.coolwallpaper;
import org.junit.Test; import org.junit.Test;

View File

@ -1,5 +1,5 @@
[versions] [versions]
agp = "8.8.1" agp = "8.2.1"
junit = "4.13.2" junit = "4.13.2"
junitVersion = "1.2.1" junitVersion = "1.2.1"
espressoCore = "3.6.1" espressoCore = "3.6.1"

View File

@ -1,6 +1,6 @@
#Fri Feb 21 18:22:41 CST 2025 #Sat Mar 01 23:10:06 CST 2025
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists