Skip to content

Commit

Permalink
feat: update android manifest and pocketbase host location
Browse files Browse the repository at this point in the history
  • Loading branch information
RayhanHamada committed Jan 23, 2024
1 parent e9fcd73 commit 6635088
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ migrate_working_dir/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols
Expand Down
3 changes: 2 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<application
android:label="secureu_mobile"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
android:networkSecurityConfig="@xml/network_security_config">
<activity
android:name=".MainActivity"
android:exported="true"
Expand Down
7 changes: 7 additions & 0 deletions android/app/src/main/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">localhost</domain>
<domain includeSubdomains="true">10.0.2.2</domain>
</domain-config>
</network-security-config>
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
1 change: 1 addition & 0 deletions devtools_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extensions:
2 changes: 1 addition & 1 deletion lib/config/constants.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const isProduction = bool.fromEnvironment('dart.vm.product');
final pocketbaseURL = Uri.parse('http://103.139.192.196:8090/');
final pocketbaseURL = Uri.parse('http://10.0.2.2:8090');
const hivePath = null;
2 changes: 1 addition & 1 deletion lib/repos/models/secret_model/secret_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Secret with _$Secret {
@JsonKey(name: 'email_or_username') required String emailOrUsername,
required String password,
@JsonKey(name: 'account_id') required String accountId,
@JsonKey(nullable: true) required DateTime? updated,
@JsonKey() required DateTime? updated,
}) = _Secret;

factory Secret.fromJson(Map<String, dynamic> json) => _$SecretFromJson(json);
Expand Down

0 comments on commit 6635088

Please sign in to comment.