mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-06-03 20:51:19 +00:00
chore(android): update Gradle dependencies, adjust Python build path, and enhance AndroidManifest with drawable resources
This commit is contained in:
@@ -13,7 +13,7 @@ import com.chaquo.python.android.AndroidPlatform;
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
private WebView webView;
|
||||
private ProgressBar progressBar;
|
||||
private static final String SERVER_URL = "http://127.0.0.1:8000";
|
||||
private static final String SERVER_URL = "https://127.0.0.1:8000";
|
||||
private static final int SERVER_PORT = 8000;
|
||||
|
||||
@SuppressLint("SetJavaScriptEnabled")
|
||||
@@ -49,6 +49,13 @@ public class MainActivity extends AppCompatActivity {
|
||||
super.onPageStarted(view, url, favicon);
|
||||
progressBar.setVisibility(android.view.View.VISIBLE);
|
||||
}
|
||||
|
||||
@SuppressLint("WebViewClientOnReceivedSslError")
|
||||
@Override
|
||||
public void onReceivedSslError(WebView view, android.webkit.SslErrorHandler handler, android.net.http.SslError error) {
|
||||
// Ignore SSL certificate errors for localhost
|
||||
handler.proceed();
|
||||
}
|
||||
});
|
||||
|
||||
startMeshChatServer();
|
||||
|
||||
Reference in New Issue
Block a user