Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Mobile App
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Code
Mobile App
Commits
44e5faad
Commit
44e5faad
authored
5 years ago
by
Markin Igor
Browse files
Options
Downloads
Patches
Plain Diff
Add Android build scripts.
parent
23937712
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Resolve "Set up building process."
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+5
-1
5 additions, 1 deletion
README.md
build-android.sh
+21
-0
21 additions, 0 deletions
build-android.sh
build-ios.sh
+1
-1
1 addition, 1 deletion
build-ios.sh
with
27 additions
and
2 deletions
README.md
+
5
−
1
View file @
44e5faad
...
...
@@ -2,10 +2,14 @@
## Building process
####
#
iOS
#### iOS
-
Production
`./build-ios.sh`
-
Development
`./build-ios.sh development`
#### Android
-
Production
`./build-android.sh`
-
Development
`./build-android.sh development`
### Build application in debug mode
-
With development flavor
`flutter run --flavor development -t lib/main-dev.dart`
-
With production flavor
`flutter run --flavor production -t lib/main.dart`
...
...
This diff is collapsed.
Click to expand it.
build-android.sh
0 → 100755
+
21
−
0
View file @
44e5faad
#!/usr/bin/env bash
flavor
=
'production'
entryPoint
=
'main.dart'
if
[[
$1
==
'development'
]]
then
flavor
=
'development'
entryPoint
=
'main-dev.dart'
fi
# Build ios
flutter build apk
--flavor
${
flavor
}
-t
lib/
${
entryPoint
}
# Move packages wherever we need
# cp build/app/outputs/apk/development/release/app-development-release.apk /path
# cp build/app/outputs/apk/production/release/app-production-release.apk /path
# Cleanup
# flutter clean
This diff is collapsed.
Click to expand it.
build-ios.sh
+
1
−
1
View file @
44e5faad
...
...
@@ -16,7 +16,7 @@ then
fi
# Build ios
flutter build ios
-v
--flavor
${
flavor
}
-t
lib/
${
entryPoint
}
flutter build ios
--flavor
${
flavor
}
-t
lib/
${
entryPoint
}
# Export xarchive
xcodebuild
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment