Skip to content

Commit

Permalink
Merge pull request #46 from mrmilu/IFMD-48
Browse files Browse the repository at this point in the history
feat: ifmd-48
  • Loading branch information
Anullos authored Aug 16, 2024
2 parents 322b810 + ff9273e commit 83ea9ad
Show file tree
Hide file tree
Showing 101 changed files with 752 additions and 302 deletions.
2 changes: 1 addition & 1 deletion .env.beta
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ ENVIRONMENT="beta"
APP_NAME="Flutter base (beta)"
FIREBASE_REVERSED_CLIENT_ID="com.googleusercontent.apps.xxxx-xxxxxxxxx"
DYNAMIC_LINK_HOST="flutterbase.page.link"
DYNAMIC_LINKS_URL_TYPE_SCHEMA="com.flutterbasemrmilu.beta"
DYNAMIC_LINKS_URL_TYPE_SCHEMA="com.flutterbase.beta"
4 changes: 2 additions & 2 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
API_URL="https://f84a-2-139-107-2.ngrok.io"
ENVIRONMENT="dev"
APP_ID="com.flutterbasemrmilu.dev"
APP_ID="com.flutterbase.dev"
APP_NAME="Flutter base (dev)"
DYNAMIC_LINK_HOST="flutterbase2022.page.link"
DYNAMIC_LINKS_URL_TYPE_SCHEMA="com.flutterbasemrmilu.dev"
DYNAMIC_LINKS_URL_TYPE_SCHEMA="com.flutterbase.dev"
2 changes: 1 addition & 1 deletion .env.live
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ API_URL="https://f84a-2-139-107-2.ngrok.io"
ENVIRONMENT="live"
APP_NAME="Flutter base"
DYNAMIC_LINK_HOST="flutterbase2022.page.link"
DYNAMIC_LINKS_URL_TYPE_SCHEMA="com.flutterbasemrmilu.live"
DYNAMIC_LINKS_URL_TYPE_SCHEMA="com.flutterbase.live"
3 changes: 1 addition & 2 deletions android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ app/release
**/*.keystore
**/*.jks

# TODO: IMPORTANT REMOVE THIS IGNORE ON FINAL PROJECT
google-services.json

20 changes: 16 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if (flutterCompileSdkVersion == null) {

def flutterMinSdkVersion = localProperties.getProperty('flutter.minSdkVersion')
if (flutterMinSdkVersion == null) {
flutterMinSdkVersion = '21'
flutterMinSdkVersion = '23'
}

def flutterTargetSdkVersion = localProperties.getProperty('flutter.targetSdkVersion')
Expand Down Expand Up @@ -63,6 +63,7 @@ project.ext.envConfigFiles = [
apply from: project(':flutter_config').projectDir.getPath() + "/dotenv.gradle"

android {

signingConfigs {
release_beta {
keyAlias betaKeystoreProperties['keyAlias']
Expand All @@ -78,22 +79,32 @@ android {
}
}

flavorDimensions "flavor-type"
// ----- BEGIN flavorDimensions (autogenerated by flutter_flavorizr) -----
flavorDimensions += "flavor-type"

productFlavors {
dev {
dimension "flavor-type"
applicationId "com.flutterbase.dev"
resValue "string", "app_name", "FlutterBase (Dev)"
}
beta {
dimension "flavor-type"
applicationId "com.flutterbase.beta"
signingConfig signingConfigs.release_beta
resValue "string", "app_name", "FlutterBase (Beta)"
}
live {
dimension "flavor-type"
signingConfig signingConfigs.release_live
applicationId "com.flutterbase.live"
// signingConfig signingConfigs.release_live
resValue "string", "app_name", "FlutterBase"
}
}

// ----- END flavorDimensions (autogenerated by flutter_flavorizr) -----


compileSdkVersion flutterCompileSdkVersion.toInteger()

compileOptions {
Expand All @@ -120,7 +131,7 @@ android {
versionName flutterVersionName
resValue "string", "app_name", project.env.hasProperty("APP_NAME") ? project.env.get("APP_NAME") : "Flutter base"
resValue "string", "dynamic_link_host", project.env.get("DYNAMIC_LINK_HOST")
resValue "string", "build_config_package", "com.flutterbasemrmilu.live"
resValue "string", "build_config_package", "com.flutterbase.live"
}
}

Expand All @@ -129,6 +140,7 @@ flutter {
}

dependencies {
implementation(platform("com.google.firebase:firebase-bom:33.1.2"))
implementation 'androidx.window:window:1.0.0'
implementation 'androidx.window:window-java:1.0.0'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
Expand Down
29 changes: 29 additions & 0 deletions android/app/src/beta/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "426720039629",
"project_id": "flutter-base-1e320",
"storage_bucket": "flutter-base-1e320.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:426720039629:android:d2ce4db65b1a9ac6fa0f84",
"android_client_info": {
"package_name": "com.flutterbase.beta"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCg-GIT4IvzyHrMH0-H6BCwiknBp4jtmaU"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
Binary file modified android/app/src/beta/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/beta/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/beta/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/beta/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/beta/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.
2 changes: 1 addition & 1 deletion android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.flutterbasemrmilu.live">
package="com.flutterbase.live">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
29 changes: 29 additions & 0 deletions android/app/src/dev/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "426720039629",
"project_id": "flutter-base-1e320",
"storage_bucket": "flutter-base-1e320.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:426720039629:android:d2ce4db65b1a9ac6fa0f84",
"android_client_info": {
"package_name": "com.flutterbase.beta"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCg-GIT4IvzyHrMH0-H6BCwiknBp4jtmaU"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
Binary file modified android/app/src/dev/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/dev/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/dev/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/dev/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/dev/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.
29 changes: 29 additions & 0 deletions android/app/src/live/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "795134483527",
"project_id": "flutter-base-live",
"storage_bucket": "flutter-base-live.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:795134483527:android:c23b66fa3ea2f9aefa6562",
"android_client_info": {
"package_name": "com.flutterbase.live"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCaYz5WmSYLlTylBurRPLD4wstnbZ9Hu_s"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
Binary file modified android/app/src/live/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/live/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/live/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/live/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/live/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.
35 changes: 14 additions & 21 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.flutterbasemrmilu.live">
<application android:label="@string/app_name" android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.flutterbase.live">
<application android:label="@string/app_name" android:name="${applicationName}" android:icon="@mipmap/ic_launcher">
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme"/>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="@string/DYNAMIC_LINK_HOST" android:scheme="https" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="@string/DYNAMIC_LINK_HOST" android:scheme="https"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data android:name="flutterEmbedding" android:value="2" />
<meta-data android:name="flutterEmbedding" android:value="2"/>
</application>
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flutterbasemrmilu.live
package com.flutterbase.live

import io.flutter.embedding.android.FlutterActivity

Expand Down
2 changes: 1 addition & 1 deletion android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.flutterbasemrmilu.live">
package="com.flutterbase.live">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 1 addition & 1 deletion android/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
json_key_file("fastlane/api-access.json")
package_name("com.flutterbasemrmilu.live")
package_name("com.flutterbase.live")
4 changes: 2 additions & 2 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ platform :android do
lane :build_deploy_internal_beta do
sh("flutter", "build", "appbundle", "--flavor", "beta", "./lib/main_beta.dart")
upload_to_play_store(
package_name: 'com.flutterbasemrmilu.beta',
package_name: 'com.flutterbase.beta',
track: 'internal',
aab: '../build/app/outputs/bundle/betaRelease/app-beta-release.aab'
)
Expand All @@ -29,7 +29,7 @@ platform :android do
lane :build_deploy_internal_prod do
sh("flutter", "build", "appbundle", "--flavor", "live", "./lib/main_live.dart")
upload_to_play_store(
package_name: 'com.flutterbasemrmilu.live',
package_name: 'com.flutterbase.live',
track: 'alpha',
aab: '../build/app/outputs/bundle/liveRelease/app-live-release.aab'
)
Expand Down
4 changes: 1 addition & 3 deletions ios/Flutter/Default.xcconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
FLUTTER_WEB_AUTO_DETECT=true
FLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/04817c99c9fd4956f27505204f7e344335810aed/
FLUTTER_APP_FLAVOR=dev

6 changes: 4 additions & 2 deletions ios/Flutter/betaDebug.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-beta.xcconfig"
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
#include? "tmp.xcconfig"

FLUTTER_TARGET=lib/main_beta.dart
ASSET_PREFIX=beta
BUNDLE_NAME=FlutterBase (Beta)
BUNDLE_DISPLAY_NAME=FlutterBase (Beta)
7 changes: 4 additions & 3 deletions ios/Flutter/betaProfile.xcconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
#include? "tmp.xcconfig"

FLUTTER_TARGET=lib/main_beta.dart


ASSET_PREFIX=beta
BUNDLE_NAME=FlutterBase (Beta)
BUNDLE_DISPLAY_NAME=FlutterBase (Beta)
8 changes: 4 additions & 4 deletions ios/Flutter/betaRelease.xcconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-beta.xcconfig"
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
#include? "tmp.xcconfig"

FLUTTER_TARGET=lib/main_beta.dart


ASSET_PREFIX=beta
BUNDLE_NAME=FlutterBase (Beta)
BUNDLE_DISPLAY_NAME=FlutterBase (Beta)
6 changes: 4 additions & 2 deletions ios/Flutter/devDebug.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-dev.xcconfig"
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
#include? "tmp.xcconfig"

FLUTTER_TARGET=lib/main_dev.dart
ASSET_PREFIX=dev
BUNDLE_NAME=FlutterBase (Dev)
BUNDLE_DISPLAY_NAME=FlutterBase (Dev)
5 changes: 4 additions & 1 deletion ios/Flutter/devProfile.xcconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
#include? "tmp.xcconfig"

FLUTTER_TARGET=lib/main_dev.dart
ASSET_PREFIX=dev
BUNDLE_NAME=FlutterBase (Dev)
BUNDLE_DISPLAY_NAME=FlutterBase (Dev)
6 changes: 4 additions & 2 deletions ios/Flutter/devRelease.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-dev.xcconfig"
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
#include? "tmp.xcconfig"

FLUTTER_TARGET=lib/main_dev.dart
ASSET_PREFIX=dev
BUNDLE_NAME=FlutterBase (Dev)
BUNDLE_DISPLAY_NAME=FlutterBase (Dev)
6 changes: 4 additions & 2 deletions ios/Flutter/liveDebug.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-live.xcconfig"
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"


FLUTTER_TARGET=lib/main_live.dart
ASSET_PREFIX=live
BUNDLE_NAME=FlutterBase
BUNDLE_DISPLAY_NAME=FlutterBase
5 changes: 4 additions & 1 deletion ios/Flutter/liveProfile.xcconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"


FLUTTER_TARGET=lib/main_live.dart
ASSET_PREFIX=live
BUNDLE_NAME=FlutterBase
BUNDLE_DISPLAY_NAME=FlutterBase
6 changes: 4 additions & 2 deletions ios/Flutter/liveRelease.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-live.xcconfig"
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"


FLUTTER_TARGET=lib/main_live.dart
ASSET_PREFIX=live
BUNDLE_NAME=FlutterBase
BUNDLE_DISPLAY_NAME=FlutterBase
Loading

0 comments on commit 83ea9ad

Please sign in to comment.