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

@ -50,4 +50,5 @@ app.*.map.json
.mason/
.env
!.env.example
!.env.example
node_modules/

View File

@ -6,4 +6,4 @@ wyatt_description
- Flutter <https://flutter.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 {
// 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.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion flutter.minSdkVersion

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Wyatt App Template</string>
<string>Wyatt App</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>wyatt_app_template</string>
<string>Wyatt App</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<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
flutter_launcher_icons: ^0.11.0
dart_code_metrics: ^5.4.0
rename: ^2.1.1
wyatt_analysis:
hosted:
url: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/

View File

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