Commit 9cd799d3 authored by Ilham Maulana's avatar Ilham Maulana 💻

fix: change icon & wrapping up configuration for build apk

parent 861f22de
......@@ -3,6 +3,7 @@
*.log
*.pyc
*.swp
*.jks
.DS_Store
.atom/
.buildlog/
......
......@@ -23,6 +23,12 @@ if (flutterVersionName == null) {
flutterVersionName = "1.0"
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
namespace = "com.example.library_app"
compileSdk = flutter.compileSdkVersion
......@@ -44,11 +50,20 @@ android {
versionName = flutterVersionName
}
signingConfigs {
release {
keyAlias = keystoreProperties['keyAlias']
keyPassword = keystoreProperties['keyPassword']
storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword = keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.debug
signingConfig = signingConfigs.release
}
}
}
......@@ -56,3 +71,7 @@ android {
flutter {
source = "../.."
}
dependencies {
implementation("com.google.android.material:material:1.12.0")
}
\ No newline at end of file
......@@ -42,4 +42,5 @@
<data android:mimeType="text/plain"/>
</intent>
</queries>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
......@@ -19,7 +19,7 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "org.jetbrains.kotlin.android" version "2.0.10" apply false
}
include ":app"
......@@ -11,7 +11,7 @@ import 'package:library_app/src/models/user.dart';
class AuthProvider with ChangeNotifier {
final storage = const FlutterSecureStorage();
String baseUrl = 'http://ilhammaulana.pythonanywhere.com/api/v1';
String baseUrl = 'https://ilhammaulana.pythonanywhere.com/api/v1';
String? message;
User? user;
......
......@@ -4,7 +4,7 @@ import 'package:flutter/foundation.dart';
import 'package:http/http.dart' as http;
class BookProvider with ChangeNotifier {
String baseUrl = 'http://ilhammaulana.pythonanywhere.com/api/v1';
String baseUrl = 'https://ilhammaulana.pythonanywhere.com/api/v1';
List<dynamic>? books;
List<dynamic>? categories;
Category? category;
......
......@@ -77,10 +77,10 @@ packages:
dependency: transitive
description:
name: ffi
sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.1.3"
flutter:
dependency: "direct main"
description: flutter
......@@ -164,10 +164,10 @@ packages:
dependency: "direct main"
description:
name: go_router
sha256: "39dd52168d6c59984454183148dc3a5776960c61083adfc708cc79a7b3ce1ba8"
sha256: ddc16d34b0d74cb313986918c0f0885a7ba2fc24d8fb8419de75f0015144ccfe
url: "https://pub.dev"
source: hosted
version: "14.2.1"
version: "14.2.3"
google_fonts:
dependency: "direct main"
description:
......@@ -300,18 +300,18 @@ packages:
dependency: transitive
description:
name: path_provider
sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161
sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378
url: "https://pub.dev"
source: hosted
version: "2.1.3"
version: "2.1.4"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
sha256: "30c5aa827a6ae95ce2853cdc5fe3971daaac00f6f081c419c013f7f57bff2f5e"
sha256: "490539678396d4c3c0b06efdaab75ae60675c3e0c66f72bc04c2e2c1e0e2abeb"
url: "https://pub.dev"
source: hosted
version: "2.2.7"
version: "2.2.9"
path_provider_foundation:
dependency: transitive
description:
......@@ -489,10 +489,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4
sha256: "68d1e89a91ed61ad9c370f9f8b6effed9ae5e0ede22a270bdfa6daf79fc2290a"
url: "https://pub.dev"
source: hosted
version: "5.5.1"
version: "5.5.4"
xdg_directories:
dependency: transitive
description:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment