Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
133ff142
Commit
133ff142
authored
Jun 03, 2016
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial App Store build settings.
parent
39054f65
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
118 additions
and
43 deletions
+118
-43
.gitignore
.gitignore
+3
-0
build_ios.sh
build_ios.sh
+16
-0
iOS-Info.plist
ios/iOS-Info.plist
+5
-7
iOSForAppStore-Info-Source.plist
ios/iOSForAppStore-Info-Source.plist
+34
-36
qgroundcontrol.xcconfig
ios/qgroundcontrol.xcconfig
+17
-0
qgroundcontrol_appstore.xcconfig
ios/qgroundcontrol_appstore.xcconfig
+17
-0
qgroundcontrol.pro
qgroundcontrol.pro
+6
-0
update_ios_version.sh
tools/update_ios_version.sh
+20
-0
No files found.
.gitignore
View file @
133ff142
...
...
@@ -60,6 +60,9 @@ gstreamer-1.0-android*
*.autosave
.settings/
# iOS Generated files
ios/iOSForAppStore-Info.plist
# Generated files
moc_*
ui_*
...
...
build_ios.sh
0 → 100755
View file @
133ff142
#!/bin/bash
if
[
!
-d
/Volumes/RAMDisk
]
;
then
echo
'RAM Disk not found'
echo
'Only used for App Store builds. It will not work on your computer.'
exit
1
fi
#-- Set to my local installation
QMAKE
=
/Applications/Qt/5.5/ios/bin/qmake
#-- Using Travis variables as this will eventually live there
SHADOW_BUILD_DIR
=
/Volumes/RAMDisk/build-qgroundcontrol-iOS-Release
TRAVIS_BUILD_DIR
=
/Users/gus/github/work/qgroundcontrol
#-- Build it
mkdir
-p
${
SHADOW_BUILD_DIR
}
&&
cd
${
SHADOW_BUILD_DIR
}
&&
${
QMAKE
}
-r
${
TRAVIS_BUILD_DIR
}
/qgroundcontrol.pro CONFIG+
=
WarningsAsErrorsOn CONFIG-
=
debug_and_release CONFIG+
=
release CONFIG+
=
ForAppStore
&&
xcodebuild
-configuration
Release
-xcconfig
${
TRAVIS_BUILD_DIR
}
/ios/qgroundcontrol_appstore.xcconfig
ios/iOS-Info.plist
View file @
133ff142
...
...
@@ -6,26 +6,24 @@
<string>
QGroundControl
</string>
<key>
CFBundleExecutable
</key>
<string>
qgroundcontrol
</string>
<key>
CFBundleGetInfoString
</key>
<string>
Created by Qt/QMake
</string>
<key>
NSHumanReadableCopyright
</key>
<string>
Open Source Flight Systems GmbH - Internal Build
</string>
<key>
CFBundleIconFile
</key>
<string></string>
<key>
CFBundleIdentifier
</key>
<string>
org.
mavlink.qgroundcontrol
</string>
<string>
org.
QGroundControl.QGCiOS
</string>
<key>
CFBundleName
</key>
<string>
QGroundControl
</string>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<key>
CFBundleShortVersionString
</key>
<string>
#.#.#
</string>
<string>
0.0.0
</string>
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundleVersion
</key>
<string>
###
</string>
<string>
1
</string>
<key>
LSRequiresIPhoneOS
</key>
<true/>
<key>
NOTE
</key>
<string>
This file was generated by Qt/QMake.
</string>
<key>
UILaunchStoryboardName
</key>
<string>
QGCLaunchScreen
</string>
<key>
UIRequiresFullScreen
</key>
...
...
ios/iOSForAppStore-Info.plist
→
ios/iOSForAppStore-Info
-Source
.plist
View file @
133ff142
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1
.0
"
>
<plist
version=
"1"
>
<dict>
<key>
CFBundleDisplayName
</key>
<string>
QGroundControl
</string>
<key>
CFBundleExecutable
</key>
<string>
qgroundcontrol
</string>
<key>
CFBundleGetInfoString
</key>
<string>
Created by Qt/QMake
</string>
<key>
NSHumanReadableCopyright
</key>
<string>
Open Source Flight Systems GmbH
</string>
<key>
CFBundleIconFile
</key>
<string></string>
<key>
CFBundleIdentifier
</key>
<string>
com.grubba.qgroundcontrol
</string>
<key>
CFBundleName
</key>
<string>
QGroundControl
</string>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<key>
CFBundleShortVersionString
</key>
<string>
#.#.#
</string>
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundleVersion
</key>
<string>
###
</string>
<key>
LSRequiresIPhoneOS
</key>
<true/>
<key>
NOTE
</key>
<string>
This file was generated by Qt/QMake.
</string>
<key>
UILaunchStoryboardName
</key>
<string>
QGCLaunchScreen
</string>
<key>
UIRequiresFullScreen
</key>
<true/>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
ForAppStore
</key>
<string>
Yes
</string>
<key>
NSLocationUsageDescription
</key>
<string>
Ground Station Location
</string>
<key>
NSLocationWhenInUseUsageDescription
</key>
<string>
Ground Station Location
</string>
<key>
UISupportedInterfaceOrientations
</key>
<array>
<string>
UIInterfaceOrientationLandscapeLeft
</string>
<string>
UIInterfaceOrientationLandscapeRight
</string>
</array>
<key>
CFBundleIcons
</key>
<dict>
<key>
CFBundlePrimaryIcon
</key>
...
...
@@ -83,5 +50,36 @@
</array>
</dict>
</dict>
<key>
CFBundleIdentifier
</key>
<string>
org.QGroundControl.QGCiOS
</string>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
CFBundleName
</key>
<string>
QGroundControl
</string>
<key>
CFBundlePackageType
</key>
<string>
APPL
</string>
<key>
CFBundleShortVersionString
</key>
<string>
###VERSION###
</string>
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundleVersion
</key>
<string>
###BUILD###
</string>
<key>
ForAppStore
</key>
<string>
Yes
</string>
<key>
LSRequiresIPhoneOS
</key>
<true/>
<key>
NSLocationUsageDescription
</key>
<string>
Ground Station Location
</string>
<key>
NSLocationWhenInUseUsageDescription
</key>
<string>
Ground Station Location
</string>
<key>
UILaunchStoryboardName
</key>
<string>
QGCLaunchScreen
</string>
<key>
UIRequiresFullScreen
</key>
<true/>
<key>
UISupportedInterfaceOrientations
</key>
<array>
<string>
UIInterfaceOrientationLandscapeLeft
</string>
<string>
UIInterfaceOrientationLandscapeRight
</string>
</array>
</dict>
</plist>
ios/qgroundcontrol.xcconfig
0 → 100644
View file @
133ff142
CODE_SIGN_IDENTITY = "";
CODE_SIGNING_REQUIRED = NO;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ios/qgroundcontrol_appstore.xcconfig
0 → 100644
View file @
133ff142
CODE_SIGN_IDENTITY = "iPhone Distribution";
PROVISIONING_PROFILE = 11a5f941-2284-40f1-95ad-50005b648377;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
qgroundcontrol.pro
View file @
133ff142
...
...
@@ -117,6 +117,12 @@ iOSBuild {
#-- Info.plist (need an "official" one for the App Store)
ForAppStore {
message(App Store Build)
#-- Create official, versioned Info.plist
APP_STORE = $$system(cd $${BASEDIR} && $${BASEDIR}/tools/update_ios_version.sh $${BASEDIR}/ios/iOSForAppStore-Info-Source.plist $${BASEDIR}/ios/iOSForAppStore-Info.plist)
APP_ERROR = $$find(APP_STORE, "Error")
count(APP_ERROR, 1) {
error("Error building .plist file. '
ForAppStore
'
builds
are
only
possible
through
the
official
build
system
.
")
}
QMAKE_INFO_PLIST = $${BASEDIR}/ios/iOSForAppStore-Info.plist
OTHER_FILES += $${BASEDIR}/ios/iOSForAppStore-Info.plist
} else {
...
...
tools/update_ios_version.sh
0 → 100755
View file @
133ff142
#!/usr/bin/env bash
# this requires `master` in the git tree
# travis-ci branch builds are unable to set the version properly
PLIST_FILE_SRC
=
$1
PLIST_FILE_DST
=
$2
BUILD_CODE
=
`
git rev-list master
--first-parent
--count
`
VERSION_CODE
=
`
git describe
--always
--tags
|
sed
-e
's/[^0-9.]*\([0-9.]*\).*/\1/'
`
if
[
-z
"
$BUILD_CODE
"
-o
-z
"
$VERSION_CODE
"
]
;
then
echo
"Error: Version and/or build empty."
exit
1
# Cause the build to fail
else
echo
"Version:
${
VERSION_CODE
}
"
echo
"Build:
${
BUILD_CODE
}
"
fi
sed
-e
"s/
\#
##BUILD###/
${
BUILD_CODE
}
/"
-e
"s/
\#
##VERSION###/
${
VERSION_CODE
}
/"
$PLIST_FILE_SRC
>
$PLIST_FILE_DST
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment