Skip to content

Commit

Permalink
refactor: Use BuildConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Feb 25, 2024
1 parent b15ba77 commit 9898697
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ android {
buildFeatures {
viewBinding true
aidl true
buildConfig true
}
packagingOptions.jniLibs.useLegacyPackaging true

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/xtr/keymapper/activity/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.topjohnwu.superuser.Shell;

import xtr.keymapper.BuildConfig;
import xtr.keymapper.R;
import xtr.keymapper.Server;
import xtr.keymapper.TouchPointer;
Expand All @@ -38,7 +39,7 @@ public class MainActivity extends AppCompatActivity {

static {
// Set settings before the main shell can be created
Shell.enableVerboseLogging = false;
Shell.enableVerboseLogging = BuildConfig.DEBUG;
Shell.setDefaultBuilder(Shell.Builder.create()
.setFlags(Shell.FLAG_REDIRECT_STDERR)
.setTimeout(10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.io.IOException;

import rikka.shizuku.Shizuku;
import xtr.keymapper.BuildConfig;
import xtr.keymapper.IRemoteService;

public class RemoteServiceHelper {
Expand Down Expand Up @@ -97,8 +98,8 @@ private static void bindShizukuService(Context context, RemoteServiceConnection
new Shizuku.UserServiceArgs(new ComponentName(context, RemoteService.class.getName()))
.daemon(false)
.processNameSuffix("service")
.debuggable(false)
.version(12);
.debuggable(BuildConfig.DEBUG)
.version(BuildConfig.VERSION_CODE);
Shizuku.bindUserService(userServiceArgs, connection);
}

Expand Down
4 changes: 4 additions & 0 deletions keystore.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
storePassword=myStorePassword
keyPassword=mykeyPassword
keyAlias=myKeyAlias
storeFile=myStoreFileLocation

0 comments on commit 9898697

Please sign in to comment.