feat: add Trapeze and Rename

This commit is contained in:
Hugo Pointcheval 2023-01-20 18:33:07 +01:00
parent 25dc777f0c
commit fcf31a4a54
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC
11 changed files with 6557 additions and 24 deletions

View File

@ -51,3 +51,4 @@ app.*.map.json
.env .env
!.env.example !.env.example
node_modules/

View File

@ -6,4 +6,4 @@ wyatt_description
- Flutter <https://flutter.dev/> - Flutter <https://flutter.dev/>
- Taskfile <https://taskfile.dev/> - Taskfile <https://taskfile.dev/>
- Trapeze <https://trapeze.dev/> - Trapeze <https://trapeze.dev/> (with `npm install` thanks to `package.json`)

View File

@ -44,7 +44,7 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "io.wyattapp.new.wyatt_app_template" applicationId "io.wyattapp.new"
// You can update the following values to match your application needs. // You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion flutter.minSdkVersion minSdkVersion flutter.minSdkVersion

View File

@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.wyattapp.new.wyatt_app_template"> package="io.wyattapp.new.wyatt_app_template">
<application <application
android:label="wyatt_app_template" android:label="Wyatt App"
android:name="${applicationName}" android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"> android:icon="@mipmap/ic_launcher">
<activity <activity

View File

@ -59,5 +59,4 @@ tasks:
desc: Running Trapeze config desc: Running Trapeze config
aliases: [t] aliases: [t]
cmds: cmds:
- npm install @trapezedev/configure - npx trapeze run trapeze.yaml --android-project android --ios-project ios
- npx trapeze run trapeze.yaml

View File

@ -295,7 +295,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
PRODUCT_BUNDLE_IDENTIFIER = io.wyattapp.new.wyattAppTemplate; PRODUCT_BUNDLE_IDENTIFIER = io.wyattapp.new;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
@ -424,7 +424,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
PRODUCT_BUNDLE_IDENTIFIER = io.wyattapp.new.wyattAppTemplate; PRODUCT_BUNDLE_IDENTIFIER = io.wyattapp.new;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@ -447,7 +447,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
PRODUCT_BUNDLE_IDENTIFIER = io.wyattapp.new.wyattAppTemplate; PRODUCT_BUNDLE_IDENTIFIER = io.wyattapp.new;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;

View File

@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string> <string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
<string>Wyatt App Template</string> <string>Wyatt App</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string> <string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>wyatt_app_template</string> <string>Wyatt App</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
{
"dependencies": {
"@trapezedev/configure": "^7.0.5"
}
}

View File

@ -50,6 +50,7 @@ dev_dependencies:
json_serializable: ^6.6.0 json_serializable: ^6.6.0
flutter_launcher_icons: ^0.11.0 flutter_launcher_icons: ^0.11.0
dart_code_metrics: ^5.4.0 dart_code_metrics: ^5.4.0
rename: ^2.1.1
wyatt_analysis: wyatt_analysis:
hosted: hosted:
url: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ url: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/

View File

@ -1,7 +1,7 @@
vars: vars:
BUNDLE_ID:
default: io.wyattapp.new
PACKAGE_NAME: PACKAGE_NAME:
default: wyatt_app_template
BUNDLE_ID:
default: io.wyattapp.new default: io.wyattapp.new
APP_NAME: APP_NAME:
default: Wyatt App default: Wyatt App
@ -9,12 +9,13 @@ vars:
platforms: platforms:
android: android:
appName: $APP_NAME appName: $APP_NAME
packageName: $PACKAGE_NAME packageName: $BUNDLE_ID.$PACKAGE_NAME
manifest: # Uncomment to add some permissions
- file: AndroidManifest.xml # manifest:
target: manifest/application # - file: AndroidManifest.xml
inject: # target: manifest/application
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> # inject:
# <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
ios: ios:
targets: targets:
Runner: Runner:
@ -23,11 +24,13 @@ platforms:
displayName: $APP_NAME displayName: $APP_NAME
entitlements: entitlements:
replace: true replace: true
# Workaround for https://stackoverflow.com/questions/55167611/flutter-ios-app-submission-issue-warning-missing-push-notification-entitlement
entries: entries:
- aps-environment: development - aps-environment: development
plist: # Uncomment to add some permissions
- replace: true # plist:
entries: # - replace: true
- UISupportedInterfaceOrientations: # entries:
- UIInterfaceOrientationPortrait # - UISupportedInterfaceOrientations:
# - UIInterfaceOrientationPortrait