diff --git a/.gitignore b/.gitignore index ae1f183..ea72850 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ lib/generated_plugin_registrant.dart # Exceptions to above rules. !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages +!/build/app/outputs/apk/app.apk diff --git a/README.md b/README.md index faadbeb..4067196 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,26 @@ # Covid Updates -![](assets/images/covid%2019.png) +![app-screenshot](assets/images/covid%2019.png) -A Flutter project inspired by @[tmrw](https://dribbble.com/tmrwstudio). +A Flutter project inspired by [@tmrw](https://dribbble.com/tmrwstudio). -## Done +## Download app -- Home Page -- Reports Page -- Symptoms Page + - [Android](build/app/outputs/apk/app.apk) ## ToDo - - Countries Page - - Prevention Page + - News Feature(Imp) + - IOS Build + - UI Updates + - Some cool animations -### Contributions are welcome +## Contributions are welcome + + I will try to merge all pull requests before 48 hours.Happy coding + +## Credits + - Corona API - [Ninja](https://corona.lmao.ninja/) ## Getting Started diff --git a/android/.gitignore b/android/.gitignore index bc2100d..82ed62c 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -4,4 +4,5 @@ gradle-wrapper.jar /gradlew /gradlew.bat /local.properties +/key.properties GeneratedPluginRegistrant.java diff --git a/android/app/build.gradle b/android/app/build.gradle index df04bea..28ce235 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -21,6 +21,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)) +} + apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" @@ -38,7 +44,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.covid_updates" + applicationId "io.github.ashishkhuraishy.covid_updates" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() @@ -46,11 +52,20 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } + 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 } } } diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 33bc85a..711c2bd 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -5,9 +5,10 @@ In most cases you can leave this as-is, but you if you want to provide additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> +