初始版本

This commit is contained in:
Zhanghu
2025-09-12 14:56:08 +08:00
parent 142134c342
commit 03304dde40
3 changed files with 16 additions and 14 deletions

View File

@@ -19,6 +19,20 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
// sign the application
signingConfigs {
release {
storeFile file('..\\sinclass.jks')
storePassword '=efX!O4i'
keyAlias 'ScreenClient'
keyPassword '=efX!O4i'
v1SigningEnabled true
v2SigningEnabled true
}
}
buildTypes { buildTypes {
debug { debug {
signingConfig signingConfigs.release signingConfig signingConfigs.release
@@ -37,18 +51,6 @@ android {
viewBinding true viewBinding true
} }
// sign the application
signingConfigs {
release {
storeFile file('..\\sinclass.jks')
storePassword '=efX!O4i'
keyAlias 'ScreenClient'
keyPassword '=efX!O4i'
v1SigningEnabled true
v2SigningEnabled true
}
}
android.applicationVariants.all { variant -> android.applicationVariants.all { variant ->
def docDir = rootProject.getRootDir().getAbsolutePath() + "/../apk/dashboard" def docDir = rootProject.getRootDir().getAbsolutePath() + "/../apk/dashboard"

View File

@@ -94,7 +94,7 @@ public class BuildingDashboardActivity extends FullscreenActivity {
super.onResume(); super.onResume();
SharedPreferences pre = PreferenceManager.getDefaultSharedPreferences(this); SharedPreferences pre = PreferenceManager.getDefaultSharedPreferences(this);
String url = pre.getString("k_url", "http://10.1.58.176:8002"); String url = pre.getString("k_url", "http://172.18.22.211:8002/Dashboard");
mainUrl = url + "/index.html"; mainUrl = url + "/index.html";
configUrl = url + "/data/config.json"; configUrl = url + "/data/config.json";

View File

@@ -3,7 +3,7 @@
<EditTextPreference <EditTextPreference
app:key="k_url" app:key="k_url"
app:title="URL 前缀" app:title="URL 前缀"
app:defaultValue="http://10.1.58.176:8002" app:defaultValue="http://172.18.22.211:8002/Dashboard"
app:useSimpleSummaryProvider="true" /> app:useSimpleSummaryProvider="true" />
</PreferenceCategory> </PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>