diff --git a/.gitignore b/.gitignore index ad13435..647d99d 100644 --- a/.gitignore +++ b/.gitignore @@ -35,7 +35,6 @@ migrate_working_dir/ /build/ # Web related -lib/generated_plugin_registrant.dart # Symbolication related app.*.symbols diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index d15ff62..eb3f8d5 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -3,7 +3,8 @@ + android:icon="@mipmap/ic_launcher" + android:networkSecurityConfig="@xml/network_security_config"> + + + localhost + 10.0.2.2 + + diff --git a/android/build.gradle b/android/build.gradle index 83ae220..3cdaac9 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -26,6 +26,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/devtools_options.yaml b/devtools_options.yaml new file mode 100644 index 0000000..7e7e7f6 --- /dev/null +++ b/devtools_options.yaml @@ -0,0 +1 @@ +extensions: diff --git a/lib/config/constants.dart b/lib/config/constants.dart index b7967c4..cbabf6a 100644 --- a/lib/config/constants.dart +++ b/lib/config/constants.dart @@ -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; diff --git a/lib/repos/models/secret_model/secret_model.dart b/lib/repos/models/secret_model/secret_model.dart index edf272e..3ea435c 100644 --- a/lib/repos/models/secret_model/secret_model.dart +++ b/lib/repos/models/secret_model/secret_model.dart @@ -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 json) => _$SecretFromJson(json);