forked from GCWizard/GCWizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cheat_sheet.txt
82 lines (63 loc) · 2.21 KB
/
cheat_sheet.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
==============================
Format code:
Activation of dart format:
flutter pub global activate dart_style
dart format lib -l 120
==============================
Android Release Build command:
flutter build appbundle --release --target-platform android-arm,android-arm64
==============================
Common Build Error Fixes:
flutter upgrade --force
flutter pub cache repair
flutter clean
Caches to clean:
Gradle (Windows: users/.gradle)
Pub cache (Windows: users/appdata/local/pub)
Android Studio (Windows: users/.android)
IntelliJ (Project Path ./.idea)
Build Path (Project Path ./build)
==============================
Web Build:
First time:
flutter config --enable-web
flutter create .
Else:
flutter build web
2021/02: Currently problems with HTML objects: Please uncomment lines in lib\widgets\utils\file_utils.dart
===============================
Icons:
Android: android/app/src/main/res/mipmap-*/ic_launcher.png
iOS: ios/Runner/Assets.xcassets/AppIcon.appiconset/
Gold Version:
- Android: Copy icons android/app/src/main/res/icons_gold into main icon directory
- iOS: Copy icons ios/Runner/Assets.xcassets/AppIcon.appiconset/icons_gold into main icon directory
- Android (change package name to gc_wizard_gold):
1. in file: android/app/src/main/AndroidManifest.xml (and name to "GC Wizard Gold", too)
2. in file: android/app/build.gradle -> defaultConfig
- iOS:
1. change bundle identifier in XCode/Info.plist in ios/Runner to de.sman42.gcWizardGold
2. change Display Name to GC Wizard Gold
/*** Troubleshooting on compiling ***/
-----------
Execution failed for task ':app:compileFlutterBuildDebug' Issue
->
flutter channel stable
flutter upgrade --force
flutter pub cache repair
cd <YOUR APP FOLDER>
flutter clean
-----------
iOS build: GeneratedPluginRegistrant.m Module not found.
-> Open XCode with .xcworkspace file instead of .xcodeproj
---------------
Xcode 10: unable to attach DB error
-> Delete /users/.../Library/Developer/Xcode/DerivedData directory
========
Crowdin Script, install jq using Scoop.sh:
Windows/Powershell
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb get.scoop.sh | iex
scoop bucket add extras
scoop install jq
Run Scripts in external_helpers/crowdin using the GitBash