Skip to content

Commit

Permalink
major changes ad firebase hosting and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
arifayduran committed Dec 3, 2024
1 parent c1c2d4b commit 0a45f0b
Show file tree
Hide file tree
Showing 168 changed files with 587 additions and 3,182 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "arifayduran-dev"
}
}
30 changes: 0 additions & 30 deletions .github/workflows/firebase-deploy.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: "\tflutter pub get && flutter build web --release --web-renderer
canvaskit"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ARIFAYDURAN_DEV }}
channelId: live
projectId: arifayduran-dev
22 changes: 22 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
on: pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: "\tflutter pub get && flutter build web --release --web-renderer
canvaskit"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ARIFAYDURAN_DEV }}
projectId: arifayduran-dev
26 changes: 5 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
# portfolio

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application that follows the
[simple app state management
tutorial](https://flutter.dev/to/state-management-sample).

For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

## Assets
## License

The `assets` directory houses images, fonts, and any other files you want to
include with your application.
This project uses materials licensed under the [CC BY 4.0 License](https://creativecommons.org/licenses/by/4.0/).

The `assets/images` directory contains [resolution-aware
images](https://flutter.dev/to/resolution-aware-images).
This includes the following animation:

## Localization

This project generates localized messages based on arb files found in
the `lib/src/localization` directory.

To support additional languages, please visit the tutorial on
[Internationalizing Flutter apps](https://flutter.dev/to/internationalization).
- **Dark/Light Switch: Animation by YoucefDev**, licensed under [CC BY 4.0 License].
- No Modifications were made.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

android {
namespace = "com.example.portfolio"
namespace = "com.arifayduran.dev"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion

Expand All @@ -21,7 +21,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.portfolio"
applicationId "com.arifayduran.dev"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="portfolio"
android:label="arifayduran.dev"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.portfolio
package com.arifayduran.dev

import io.flutter.embedding.android.FlutterActivity

Expand Down
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.
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.
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.
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground>
<inset
android:drawable="@drawable/ic_launcher_foreground"
android:inset="16%" />
</foreground>
<monochrome>
<inset
android:drawable="@drawable/ic_launcher_monochrome"
android:inset="16%" />
</monochrome>
</adaptive-icon>
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.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/mipmap-mdpi/ic_launcher.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/mipmap-xhdpi/ic_launcher.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/mipmap-xxhdpi/ic_launcher.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/mipmap-xxxhdpi/ic_launcher.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 added assets/app_icons/android_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions assets/app_icons/android_background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/app_icons/android_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions assets/app_icons/android_foreground.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/app_icons/dark_transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/app_icons/dark_transparent.svg

Large diffs are not rendered by default.

Binary file added assets/app_icons/light_transparent.png
34 changes: 34 additions & 0 deletions assets/app_icons/light_transparent.svg

Large diffs are not rendered by default.

Binary file added assets/app_icons/main_dark.png
35 changes: 35 additions & 0 deletions assets/app_icons/main_dark.svg

Large diffs are not rendered by default.

Binary file added assets/app_icons/main_light.png
35 changes: 35 additions & 0 deletions assets/app_icons/main_light.svg

Large diffs are not rendered by default.

Binary file added assets/app_icons/tinted_android.png
33 changes: 33 additions & 0 deletions assets/app_icons/tinted_android.svg

Large diffs are not rendered by default.

Binary file added assets/app_icons/tinted_ios_black.png
35 changes: 35 additions & 0 deletions assets/app_icons/tinted_ios_black.svg

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build/web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
96 changes: 96 additions & 0 deletions flutter_launcher_icons.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
dev_dependencies:
flutter_launcher_icons: "^0.14.1"

flutter_launcher_icons:
# image_path: "assets/images/icon-128x128.png"

# android made manuell (?)
android: true # can specify file name here e.g. "ic_launcher"
image_path_android: "assets/app_icons/main_light.png"
adaptive_icon_background: "assets/app_icons/android_background.png" # only available for Android 8.0 devices and above
adaptive_icon_foreground: "assets/app_icons/android_foreground.png" # only available for Android 8.0 devices and above
adaptive_icon_foreground_inset: 16 # only available for Android 8.0 devices and above
adaptive_icon_monochrome: "assets/app_icons/tinted_android.png" # only available for Android 13 devices and above
min_sdk_android: 21 # android min sdk min:16, default 21

ios: true # can specify file name here e.g. "My-Launcher-Icon"
image_path_ios: "assets/app_icons/light_transparent.png" # "assets/images/icon-1024x1024.png"
image_path_ios_dark_transparent: "assets/app_icons/dark_transparent.png" # The location of the dark mode icon image file specific for iOS 18+ platform. Note: Apple recommends this icon to be transparent. For more information see Apple Human Interface Guidelines for App Icons
image_path_ios_tinted_grayscale: "assets/app_icons/tinted_ios_black.png" # The location of the tinted mode icon image file specific for iOS 18+ platform. Note: This icon should be an grayscale image. Use desaturate_tinted_to_grayscale_ios: true to automatically desaturate the image provided here.
remove_alpha_ios: true
background_color_ios: "#ffffff" # White
# desaturate_tinted_to_grayscale_ios: Automatically desaturates tinted mode icon image to grayscale, defaults to false

web:
generate: true
image_path: "assets/app_icons/main_light.png" # "assets/images/icon-1024x1024.png"
# background_color: "#ffffff"
# theme_color: "#008159" # PurusGreen

windows:
generate: false
image_path: "assets/app_icons/windows_white_standart.png" # "assets/images/icon-1024x1024.png"
icon_size: 48 # min:48, max:256, default: 48

macos:
generate: false
image_path: "assets/app_icons/macos_white_standart.png" # "assets/images/icon-1024x1024.png"
# Attributes

# Shown below is the full list of attributes which you can specify within your Flutter Launcher Icons configuration.

# Global

# image_path: The location of the icon image file which you want to use as the app launcher icon.
# Android

# android

# true: Override the default existing Flutter launcher icon for the platform specified
# false: Ignore making launcher icons for this platform
# icon/path/here.png: This will generate a new launcher icons for the platform with the name you specify, without removing the old default existing Flutter launcher icon.
# image_path: The location of the icon image file which you want to use as the app launcher icon

# image_path_android: The location of the icon image file specific for Android platform (optional - if not defined then the image_path is used)

# min_sdk_android: Specify android min sdk value The next two attributes are only used when generating Android launcher icon

# adaptive_icon_background: The color (E.g. "#ffffff") or image asset (E.g. "assets/images/christmas-background.png") which will be used to fill out the background of the adaptive icon.

# adaptive_icon_foreground: The image asset which will be used for the icon foreground of the adaptive icon Note: Adaptive Icons will only be generated when both adaptive_icon_background and adaptive_icon_foreground are specified. (the image_path is not automatically taken as foreground)

# adaptive_icon_foreground_inset: This is used to add padding to the icon when applying an adaptive icon. The default value is 16.

# adaptive_icon_monochrome: The image asset which will be used for the icon foreground of the Android 13+ themed icon. For more information see Android Adaptive Icons

# IOS

# ios
# true: Override the default existing Flutter launcher icon for the platform specified
# false: Ignore making launcher icons for this platform
# icon/path/here.png: This will generate a new launcher icons for the platform with the name you specify, without removing the old default existing Flutter launcher icon.
# image_path_ios: The location of the icon image file specific for iOS platform (optional - if not defined then the image_path is used)
# remove_alpha_ios: Removes alpha channel for IOS icons
# image_path_ios_dark_transparent: The location of the dark mode icon image file specific for iOS 18+ platform. Note: Apple recommends this icon to be transparent. For more information see Apple Human Interface Guidelines for App Icons
# image_path_ios_tinted_grayscale: The location of the tinted mode icon image file specific for iOS 18+ platform. Note: This icon should be an grayscale image. Use desaturate_tinted_to_grayscale_ios: true to automatically desaturate the image provided here.
# desaturate_tinted_to_grayscale_ios: Automatically desaturates tinted mode icon image to grayscale, defaults to false
# background_color_ios: The color (in the format "#RRGGBB") to be used as the background when removing the alpha channel. It is used only when the remove_alpha_ios property is set to true. (optional - if not defined then #ffffff is used)
# Web

# web: Add web related configs
# generate: Specifies whether to generate icons for this platform or not
# image_path: Path to web icon.png
# background_color: Updates background_color in web/manifest.json
# theme_color: Updates theme_color in web/manifest.json
# Windows

# windows: Add Windows related configs
# generate: Specifies whether to generate icons for Windows platform or not
# image_path: Path to web icon.png
# icon_size: Windows app icon size. Icon size should be within this constrains 48<=icon_size<=256, defaults to 48
# MacOS

# macos: Add MacOS related configs
# generate: Specifies whether to generate icons for MacOS platform or not
# image_path: Path to macos icon.png file
# Note: iOS icons should fill the entire image and not contain transparent borders.
16 changes: 8 additions & 8 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.portfolio;
PRODUCT_BUNDLE_IDENTIFIER = com.arifayduran.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand All @@ -495,7 +495,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.portfolio.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = com.arifayduran.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -513,7 +513,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.portfolio.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = com.arifayduran.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand All @@ -529,7 +529,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.portfolio.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = com.arifayduran.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
Expand All @@ -540,7 +540,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand Down Expand Up @@ -597,7 +597,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
Expand Down Expand Up @@ -661,7 +661,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.portfolio;
PRODUCT_BUNDLE_IDENTIFIER = com.arifayduran.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -684,7 +684,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.portfolio;
PRODUCT_BUNDLE_IDENTIFIER = com.arifayduran.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
Loading

0 comments on commit 0a45f0b

Please sign in to comment.