Skip to content

Commit

Permalink
✨ updated project
Browse files Browse the repository at this point in the history
  • Loading branch information
adeeteya committed Feb 24, 2025
1 parent 713c2fb commit 784b20c
Show file tree
Hide file tree
Showing 103 changed files with 1,308 additions and 825 deletions.
1 change: 1 addition & 0 deletions .flatpak-builder/ccache/disabled/ccache.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
disable = true
34 changes: 17 additions & 17 deletions .metadata
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
# This file should be version controlled and should not be manually edited.

version:
revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
channel: stable
revision: "10644396b824e502ae28552234943d8a119af236"
channel: "master"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
create_revision: 10644396b824e502ae28552234943d8a119af236
base_revision: 10644396b824e502ae28552234943d8a119af236
- platform: android
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
create_revision: 10644396b824e502ae28552234943d8a119af236
base_revision: 10644396b824e502ae28552234943d8a119af236
- platform: ios
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
create_revision: 10644396b824e502ae28552234943d8a119af236
base_revision: 10644396b824e502ae28552234943d8a119af236
- platform: linux
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
create_revision: 10644396b824e502ae28552234943d8a119af236
base_revision: 10644396b824e502ae28552234943d8a119af236
- platform: macos
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
create_revision: 10644396b824e502ae28552234943d8a119af236
base_revision: 10644396b824e502ae28552234943d8a119af236
- platform: web
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
create_revision: 10644396b824e502ae28552234943d8a119af236
base_revision: 10644396b824e502ae28552234943d8a119af236
- platform: windows
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
create_revision: 10644396b824e502ae28552234943d8a119af236
base_revision: 10644396b824e502ae28552234943d8a119af236

# User provided section

Expand Down
41 changes: 19 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ Please star⭐ the repo if you like what you see😊.
[<img src="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png" width="250">](https://play.google.com/store/apps/details?id=com.aditya.random_face_generator&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1)
(or)

[<img src="https://images-na.ssl-images-amazon.com/images/G/01/mobile-apps/devportal2/res/images/amazon-appstore-badge-english-black.png" width="250">](https://www.amazon.com/gp/product/B09ZBGJR9G)
(or)

[![Download apk](https://img.shields.io/badge/Download-apk-green)](https://github.com/adeeteya/Random-Face-Generator/releases/download/3.0.0/RFG-Android-3.0.0.apk)
[![Download apk](https://img.shields.io/badge/Download-apk-green)](https://github.com/adeeteya/Random-Face-Generator/releases/download/3.0.1/RFG-Android-3.0.1.apk)

### Linux

Expand All @@ -39,7 +36,7 @@ Please star⭐ the repo if you like what you see😊.
```

### Windows
[![Download exe](https://img.shields.io/badge/Download-exe-blue)](https://github.com/adeeteya/Random-Face-Generator/releases/download/3.0.0/RFG-Windows-3.0.0.exe)
[![Download exe](https://img.shields.io/badge/Download-exe-blue)](https://github.com/adeeteya/Random-Face-Generator/releases/download/3.0.1/RFG-Windows-3.0.1.exe)

### Mac Os
[![Download dmg](https://img.shields.io/badge/Download-dmg-lightgrey)](https://github.com/adeeteya/Random-Face-Generator/releases/download/2.1.0/RFG-Macos-2.1.0.dmg)
Expand All @@ -50,8 +47,8 @@ Please star⭐ the repo if you like what you see😊.
## ✨ Features

- [x] Generate a Random Face
- [x] Filter by Gender
- [x] Filter by a Age Range
- [] Filter by Gender (currently unavailable)
- [] Filter by a Age Range (currently unavailable)
- [x] Download Face Image
- [x] Switch Theme Mode (Dark and Light)
- [x] Responsive Design
Expand All @@ -61,29 +58,29 @@ Please star⭐ the repo if you like what you see😊.

- **Mobile**

| Light | Dark |
| - | - |
| <img src="screenshots/mobile-portrait-light.jpg"> | <img src="screenshots/mobile-portrait-dark.jpg"> |
| Light | Dark |
|----------------------------------------------------|---------------------------------------------------|
| <img src="screenshots/mobile-portrait-light.jpg"> | <img src="screenshots/mobile-portrait-dark.jpg"> |
| <img src="screenshots/mobile-landscape-light.jpg"> | <img src="screenshots/mobile-landscape-dark.jpg"> |

- **Desktop**

| Light | Dark |
| - | - |
| <img src="screenshots/web-expanded-light.jpg"> | <img src="screenshots/web-expanded-dark.jpg"> |
| Light | Dark |
|--------------------------------------------------|-------------------------------------------------|
| <img src="screenshots/web-expanded-light.jpg"> | <img src="screenshots/web-expanded-dark.jpg"> |
| <img src="screenshots/web-mobileview-light.jpg"> | <img src="screenshots/web-mobileview-dark.jpg"> |

## 🔌 Plugins

| Name | Usage |
| - | - |
| [**http**](https://pub.dev/packages/http) | Api Calls |
| [**flutter_lints**](https://pub.dev/packages/flutter_lints) | For linting |
| [**hive**](https://pub.dev/packages/hive) | For preference persistence |
| [**hive_flutter**](https://pub.dev/packages/hive_flutter) | Extension for hive |
| [**download**](https://pub.dev/packages/download) | For downloading the image |
| [**path_provider**](https://pub.dev/packages/path_provider) | For getting the path to download the image |
| [**flutter_native_splash**](https://pub.dev/packages/flutter_native_splash) | To show the splash screen |
| Name | Usage |
|-----------------------------------------------------------------------------|--------------------------------------------|
| [**http**](https://pub.dev/packages/http) | Api Calls |
| [**flutter_lints**](https://pub.dev/packages/flutter_lints) | For linting |
| [**hive_ce**](https://pub.dev/packages/hive_ce) | For preference persistence |
| [**hive_ce_flutter**](https://pub.dev/packages/hive_ce_flutter) | Extension for hive |
| [**download**](https://pub.dev/packages/download) | For downloading the image |
| [**path_provider**](https://pub.dev/packages/path_provider) | For getting the path to download the image |
| [**flutter_native_splash**](https://pub.dev/packages/flutter_native_splash) | To show the splash screen |

## 🤓 Author

Expand Down
5 changes: 3 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
## Supported Versions

| Version | Supported |
|---------| ------------------ |
|---------|--------------------|
| 3.0.1 | :white_check_mark: |
| 3.0.0 | :white_check_mark: |
| 2.2.0 | :white_check_mark: |
| 2.1.0 | :white_check_mark: |

## Reporting a Vulnerability

Either mail to me at lightningbolt340@gmail.com or open a [Issue](www.github.com/Random-Face-Generator/issues)
Either mail to me at adeeteya@gmail.com or open a [Issue](www.github.com/Random-Face-Generator/issues)
3 changes: 2 additions & 1 deletion android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ gradle-wrapper.jar
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
.cxx/

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
80 changes: 0 additions & 80 deletions android/app/build.gradle

This file was deleted.

60 changes: 60 additions & 0 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import java.util.Properties
import java.io.FileInputStream

plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}

val keystorePropertiesFile = rootProject.file("key.properties")

val keystoreProperties = Properties()

keystoreProperties.load(FileInputStream(keystorePropertiesFile))

android {
namespace = "com.aditya.random_face_generator"
compileSdk = flutter.compileSdkVersion
ndkVersion = "27.0.12077973"

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}

defaultConfig {
applicationId = "com.aditya.random_face_generator"
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}

signingConfigs {
create("release") {
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
storeFile = file(keystoreProperties["storeFile"] as String)
storePassword = keystoreProperties["storePassword"] as String
}
}

buildTypes {
getByName("debug") {
signingConfig = signingConfigs.getByName("debug")
}
getByName("release") {
signingConfig = signingConfigs.getByName("release")
}
}
}

flutter {
source = "../.."
}
3 changes: 1 addition & 2 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.aditya.random_face_generator">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
Expand Down
19 changes: 15 additions & 4 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.aditya.random_face_generator">
<uses-permission android:name="android.permission.INTERNET" />
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<application
<application
android:label="Random Face Generator"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
Expand All @@ -34,4 +34,15 @@
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ package com.aditya.random_face_generator

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
}
class MainActivity : FlutterActivity()
Binary file modified android/app/src/main/res/drawable-hdpi/android12splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-hdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-mdpi/android12splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-mdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-night-hdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-night-mdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-night-v21/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-night-xhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-night-xxhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-night-xxxhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-night/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-v21/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xhdpi/android12splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xxhdpi/android12splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xxhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xxxhdpi/android12splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xxxhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.aditya.random_face_generator">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
Expand Down
31 changes: 0 additions & 31 deletions android/build.gradle

This file was deleted.

Loading

0 comments on commit 784b20c

Please sign in to comment.