1.Virtual Keyboard: fix toggle button logic
2.Custom Localization: fix patch logic 3.Fix support for Stardew Valley of Samsung version 4.Fix switch language logic
This commit is contained in:
parent
c9938c3b8e
commit
9953510220
|
@ -10,8 +10,8 @@ android {
|
||||||
applicationId "com.zane.smapiinstaller"
|
applicationId "com.zane.smapiinstaller"
|
||||||
minSdkVersion 19
|
minSdkVersion 19
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode 18
|
versionCode 20
|
||||||
versionName "1.3.4"
|
versionName "1.3.5"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
@ -34,6 +34,16 @@ android {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bundle {
|
||||||
|
language {
|
||||||
|
// Specifies that the app bundle should not support
|
||||||
|
// configuration APKs for language resources. These
|
||||||
|
// resources are instead packaged with each base and
|
||||||
|
// dynamic feature APK.
|
||||||
|
enableSplit = false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
greendao {
|
greendao {
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -21,7 +21,6 @@ import com.zane.smapiinstaller.entity.AppConfig;
|
||||||
import com.zane.smapiinstaller.entity.AppConfigDao;
|
import com.zane.smapiinstaller.entity.AppConfigDao;
|
||||||
import com.zane.smapiinstaller.entity.DaoSession;
|
import com.zane.smapiinstaller.entity.DaoSession;
|
||||||
import com.zane.smapiinstaller.entity.FrameworkConfig;
|
import com.zane.smapiinstaller.entity.FrameworkConfig;
|
||||||
import com.zane.smapiinstaller.logic.CommonLogic;
|
|
||||||
import com.zane.smapiinstaller.logic.ConfigManager;
|
import com.zane.smapiinstaller.logic.ConfigManager;
|
||||||
import com.zane.smapiinstaller.logic.GameLauncher;
|
import com.zane.smapiinstaller.logic.GameLauncher;
|
||||||
import com.zane.smapiinstaller.utils.DialogUtils;
|
import com.zane.smapiinstaller.utils.DialogUtils;
|
||||||
|
@ -33,16 +32,15 @@ import java.io.File;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.appcompat.widget.Toolbar;
|
||||||
import androidx.core.app.ActivityCompat;
|
import androidx.core.app.ActivityCompat;
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
|
import androidx.drawerlayout.widget.DrawerLayout;
|
||||||
import androidx.navigation.NavController;
|
import androidx.navigation.NavController;
|
||||||
import androidx.navigation.Navigation;
|
import androidx.navigation.Navigation;
|
||||||
import androidx.navigation.ui.AppBarConfiguration;
|
import androidx.navigation.ui.AppBarConfiguration;
|
||||||
import androidx.navigation.ui.NavigationUI;
|
import androidx.navigation.ui.NavigationUI;
|
||||||
|
|
||||||
import androidx.drawerlayout.widget.DrawerLayout;
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
|
||||||
import androidx.appcompat.widget.Toolbar;
|
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import butterknife.OnClick;
|
import butterknife.OnClick;
|
||||||
|
|
|
@ -6,4 +6,5 @@ public class ManifestPatchConstants {
|
||||||
public static final String PATTERN_MAIN_ACTIVITY = ".MainActivity";
|
public static final String PATTERN_MAIN_ACTIVITY = ".MainActivity";
|
||||||
|
|
||||||
public static final String PATTERN_VERSION_CODE = "versionCode";
|
public static final String PATTERN_VERSION_CODE = "versionCode";
|
||||||
|
public static final CharSequence APP_PACKAGE_NAME = "com.chucklefish.stardewvalley";
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,6 +169,9 @@ public class ApkPatcher {
|
||||||
if (strObj.contains(packageName.get())) {
|
if (strObj.contains(packageName.get())) {
|
||||||
attr.obj = strObj.replace(packageName.get(), Constants.TARGET_PACKAGE_NAME);
|
attr.obj = strObj.replace(packageName.get(), Constants.TARGET_PACKAGE_NAME);
|
||||||
}
|
}
|
||||||
|
else if(strObj.contains(ManifestPatchConstants.APP_PACKAGE_NAME)){
|
||||||
|
attr.obj = strObj.replace(ManifestPatchConstants.APP_PACKAGE_NAME, Constants.TARGET_PACKAGE_NAME);
|
||||||
|
}
|
||||||
case "name":
|
case "name":
|
||||||
if (strObj.contains(ManifestPatchConstants.PATTERN_MAIN_ACTIVITY)) {
|
if (strObj.contains(ManifestPatchConstants.PATTERN_MAIN_ACTIVITY)) {
|
||||||
attr.obj = strObj.replaceFirst("\\w+\\.MainActivity", "md5723872fa9a204f7f942686e9ed9d0b7d.SMainActivity");
|
attr.obj = strObj.replaceFirst("\\w+\\.MainActivity", "md5723872fa9a204f7f942686e9ed9d0b7d.SMainActivity");
|
||||||
|
|
Loading…
Reference in New Issue