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
23937712
Commit
23937712
authored
5 years ago
by
Markin Igor
Browse files
Options
Downloads
Patches
Plain Diff
Add iOS build script.
parent
90519673
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Resolve "Set up building process."
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+6
-1
6 additions, 1 deletion
README.md
build-ios.sh
+41
-0
41 additions, 0 deletions
build-ios.sh
ios/Podfile.lock
+2
-2
2 additions, 2 deletions
ios/Podfile.lock
ios/Runner.xcodeproj/project.pbxproj
+1
-3
1 addition, 3 deletions
ios/Runner.xcodeproj/project.pbxproj
with
50 additions
and
6 deletions
README.md
+
6
−
1
View file @
23937712
# Vereign mobile application.
## Application flavors
## Building process
##### iOS
-
Production
`./build-ios.sh`
-
Development
`./build-ios.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-ios.sh
0 → 100755
+
41
−
0
View file @
23937712
#!/usr/bin/env bash
flavor
=
'production'
scheme
=
'production'
configuration
=
'Release-production'
entryPoint
=
'main.dart'
bundleName
=
"Vereign"
if
[[
$1
==
'development'
]]
then
flavor
=
'development'
scheme
=
'development'
configuration
=
'Release-development'
entryPoint
=
'main-dev.dart'
bundleName
=
"Vereign-dev"
fi
# Build ios
flutter build ios
-v
--flavor
${
flavor
}
-t
lib/
${
entryPoint
}
# Export xarchive
xcodebuild
\
-workspace
ios/Runner.xcworkspace
\
-scheme
${
scheme
}
\
-sdk
iphoneos
\
-configuration
${
configuration
}
\
archive
-archivePath
\
build/ios/
${
bundleName
}
.xcarchive
# Package ipa
xcodebuild
\
-exportArchive
\
-archivePath
build/ios/
${
bundleName
}
.xcarchive
\
-exportOptionsPlist
ios/Runner/Info.plist
\
-exportPath
build/ios/
${
bundleName
}
# Move packages wherever we need
# cp build/ios/Vereign/production.ipa /path && cp build/ios/Vereign-dev/development.ipa /path
# Cleanup
# flutter clean
This diff is collapsed.
Click to expand it.
ios/Podfile.lock
+
2
−
2
View file @
23937712
...
...
@@ -18,7 +18,7 @@ PODS:
- Flutter
DEPENDENCIES:
- Flutter (from `.symlinks/flutter/ios`)
- Flutter (from `.symlinks/flutter/ios
-release
`)
- flutter_app_auth_wrapper (from `.symlinks/plugins/flutter_app_auth_wrapper/ios`)
- flutter_web_browser (from `.symlinks/plugins/flutter_web_browser/ios`)
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
...
...
@@ -31,7 +31,7 @@ SPEC REPOS:
EXTERNAL SOURCES:
Flutter:
:path: ".symlinks/flutter/ios"
:path: ".symlinks/flutter/ios
-release
"
flutter_app_auth_wrapper:
:path: ".symlinks/plugins/flutter_app_auth_wrapper/ios"
flutter_web_browser:
...
...
This diff is collapsed.
Click to expand it.
ios/Runner.xcodeproj/project.pbxproj
+
1
−
3
View file @
23937712
...
...
@@ -14,7 +14,6 @@
3B80C3951E831B6300D905FE
/* App.framework in Embed Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B80C3931E831B6300D905FE
/* App.framework */
;
settings
=
{
ATTRIBUTES
=
(
CodeSignOnCopy
,
RemoveHeadersOnCopy
,
);
};
};
9705A1C61CF904A100538489
/* Flutter.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9740EEBA1CF902C7004384FC
/* Flutter.framework */
;
};
9705A1C71CF904A300538489
/* Flutter.framework in Embed Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9740EEBA1CF902C7004384FC
/* Flutter.framework */
;
settings
=
{
ATTRIBUTES
=
(
CodeSignOnCopy
,
RemoveHeadersOnCopy
,
);
};
};
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9740EEB21CF90195004384FC
/* Debug.xcconfig */
;
};
978B8F6F1D3862AE00F588F7
/* AppDelegate.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7AFFD8EE1D35381100E5BB4D
/* AppDelegate.m */
;
};
97C146F31CF9000F007C117D
/* main.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
97C146F21CF9000F007C117D
/* main.m */
;
};
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
97C146FA1CF9000F007C117D
/* Main.storyboard */
;
};
...
...
@@ -193,7 +192,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
10
2
0
;
LastUpgradeCheck
=
10
3
0
;
ORGANIZATIONNAME
=
"The Chromium Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
@@ -228,7 +227,6 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
);
...
...
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