Browse Source

iOS Build

QGC4.4
Gus Grubba 7 years ago
parent
commit
d283ecffe0
  1. 1
      build_ios.sh
  2. BIN
      ios/Images.xcassets/AppIcon.appiconset/AppIcon29x29.png
  3. BIN
      ios/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png
  4. BIN
      ios/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png
  5. BIN
      ios/Images.xcassets/AppIcon.appiconset/AppIcon40x40~ipad.png
  6. BIN
      ios/Images.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png
  7. BIN
      ios/Images.xcassets/AppIcon.appiconset/AppIcon76x76@2x~ipad.png
  8. BIN
      ios/Images.xcassets/AppIcon.appiconset/AppIcon76x76~ipad.png
  9. 116
      ios/Images.xcassets/AppIcon.appiconset/Contents.json
  10. BIN
      ios/Images.xcassets/AppIcon.appiconset/Icon-1024.png
  11. BIN
      ios/Images.xcassets/AppIcon.appiconset/Icon-120.png
  12. BIN
      ios/Images.xcassets/AppIcon.appiconset/Icon-167.png
  13. BIN
      ios/Images.xcassets/AppIcon.appiconset/Icon-180.png
  14. BIN
      ios/Images.xcassets/AppIcon.appiconset/Icon-20.png
  15. BIN
      ios/Images.xcassets/AppIcon.appiconset/Icon-40.png
  16. BIN
      ios/Images.xcassets/AppIcon.appiconset/Icon-41.png
  17. BIN
      ios/Images.xcassets/AppIcon.appiconset/Icon-60.png
  18. BIN
      ios/Images.xcassets/AppIcon.appiconset/Icon-87.png
  19. 6
      ios/Images.xcassets/Contents.json
  20. 168
      ios/Images.xcassets/LaunchImage.launchimage/Contents.json
  21. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default1024x768.png
  22. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default1125x2436.png
  23. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default1242x2208.png
  24. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default1536x2048.png
  25. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default1920x1080.png
  26. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default2048x1536.png
  27. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default2208x1242.png
  28. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default2436x1125.png
  29. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default320x480.png
  30. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default3840x2160.png
  31. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default640x1136.png
  32. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default640x960.png
  33. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default750x1334.png
  34. BIN
      ios/Images.xcassets/LaunchImage.launchimage/Default768x1024.png
  35. 2
      ios/iOSForAppStore-Info-Source.plist
  36. 2
      src/QmlControls/ScreenTools.qml
  37. 7
      src/VideoStreaming/VideoStreaming.cc

1
build_ios.sh

@ -14,6 +14,7 @@ mkdir -p ${SHADOW_BUILD_DIR} && @@ -14,6 +14,7 @@ mkdir -p ${SHADOW_BUILD_DIR} &&
cd ${SHADOW_BUILD_DIR} &&
#-- Create project only (build using Xcode)
${QMAKE} -r ${TRAVIS_BUILD_DIR}/qgroundcontrol.pro CONFIG+=WarningsAsErrorsOn CONFIG-=debug_and_release CONFIG+=release CONFIG+=ForAppStore
rsync -av ${TRAVIS_BUILD_DIR}/ios/Images.xcassets ${SHADOW_BUILD_DIR}/QGroundControl/
#-- Create and build
#${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

BIN
ios/Images.xcassets/AppIcon.appiconset/AppIcon29x29.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/AppIcon40x40~ipad.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/AppIcon76x76@2x~ipad.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/AppIcon76x76~ipad.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

116
ios/Images.xcassets/AppIcon.appiconset/Contents.json

@ -0,0 +1,116 @@ @@ -0,0 +1,116 @@
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-41.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-60.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "AppIcon29x29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-87.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "AppIcon40x40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-120.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "AppIcon60x60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-180.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-20.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-40.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "AppIcon29x29.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "AppIcon29x29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "AppIcon40x40~ipad.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "AppIcon40x40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "AppIcon76x76~ipad.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "AppIcon76x76@2x~ipad.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-167.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "Icon-1024.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
ios/Images.xcassets/AppIcon.appiconset/Icon-1024.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/Icon-120.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/Icon-167.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/Icon-180.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/Icon-20.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/Icon-40.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/Icon-41.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/Icon-60.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
ios/Images.xcassets/AppIcon.appiconset/Icon-87.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

6
ios/Images.xcassets/Contents.json

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

168
ios/Images.xcassets/LaunchImage.launchimage/Contents.json

@ -0,0 +1,168 @@ @@ -0,0 +1,168 @@
{
"images" : [
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "2436h",
"filename" : "Default1125x2436.png",
"minimum-system-version" : "11.0",
"orientation" : "portrait",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "2436h",
"filename" : "Default2436x1125.png",
"minimum-system-version" : "11.0",
"orientation" : "landscape",
"scale" : "3x"
},
{
"orientation" : "landscape",
"idiom" : "tv",
"filename" : "Default3840x2160.png",
"extent" : "full-screen",
"minimum-system-version" : "11.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "tv",
"filename" : "Default1920x1080.png",
"extent" : "full-screen",
"minimum-system-version" : "9.0",
"scale" : "1x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "736h",
"filename" : "Default1242x2208.png",
"minimum-system-version" : "8.0",
"orientation" : "portrait",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "736h",
"filename" : "Default2208x1242.png",
"minimum-system-version" : "8.0",
"orientation" : "landscape",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "667h",
"filename" : "Default750x1334.png",
"minimum-system-version" : "8.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "Default640x960.png",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "retina4",
"filename" : "Default640x1136.png",
"minimum-system-version" : "7.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"filename" : "Default768x1024.png",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"filename" : "Default1024x768.png",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"filename" : "Default1536x2048.png",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"filename" : "Default2048x1536.png",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "Default320x480.png",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "Default640x960.png",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "Default640x1136.png",
"extent" : "full-screen",
"subtype" : "retina4",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"filename" : "Default768x1024.png",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"filename" : "Default1024x768.png",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"filename" : "Default1536x2048.png",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"filename" : "Default2048x1536.png",
"extent" : "full-screen",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default1024x768.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 KiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default1125x2436.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default1242x2208.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default1536x2048.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 MiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default1920x1080.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default2048x1536.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default2208x1242.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default2436x1125.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default320x480.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default3840x2160.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 MiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default640x1136.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 914 KiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default640x960.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 KiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default750x1334.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
ios/Images.xcassets/LaunchImage.launchimage/Default768x1024.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 980 KiB

2
ios/iOSForAppStore-Info-Source.plist

@ -83,6 +83,8 @@ @@ -83,6 +83,8 @@
<string>Ground Station Location</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Ground Station Location</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Ground Station Location</string>
<key>UILaunchStoryboardName</key>
<string>QGCLaunchScreen</string>
<key>NSBluetoothPeripheralUsageDescription</key>

2
src/QmlControls/ScreenTools.qml

@ -54,7 +54,7 @@ Item { @@ -54,7 +54,7 @@ Item {
readonly property real largeFontPointRatio: 1.5
property real realPixelDensity: QGroundControl.corePlugin.options.devicePixelDensity != 0 ? QGroundControl.corePlugin.options.devicePixelDensity : Screen.pixelDensity
property real realPixelRatio: QGroundControl.corePlugin.options.devicePixelRatio != 0 ? QGroundControl.corePlugin.options.devicePixelRatio : Screen.devicePixelRatio
property real realPixelRatio: isiOS ? 1 : (QGroundControl.corePlugin.options.devicePixelRatio != 0 ? QGroundControl.corePlugin.options.devicePixelRatio : Screen.devicePixelRatio)
property bool isAndroid: ScreenToolsController.isAndroid
property bool isiOS: ScreenToolsController.isiOS

7
src/VideoStreaming/VideoStreaming.cc

@ -120,8 +120,8 @@ void initializeVideoStreaming(int &argc, char* argv[], char* logpath, char* debu @@ -120,8 +120,8 @@ void initializeVideoStreaming(int &argc, char* argv[], char* logpath, char* debu
qgcputenv("GST_PLUGIN_PATH", currentDir, "/gstreamer-plugins");
#endif
// Initialize GStreamer
#if !defined(__ios__)
if (logpath) {
if (debuglevel) {
qputenv("GST_DEBUG", debuglevel);
@ -130,9 +130,8 @@ void initializeVideoStreaming(int &argc, char* argv[], char* logpath, char* debu @@ -130,9 +130,8 @@ void initializeVideoStreaming(int &argc, char* argv[], char* logpath, char* debu
qputenv("GST_DEBUG_FILE", QString("%1/%2").arg(logpath).arg("gstreamer-log.txt").toUtf8());
qputenv("GST_DEBUG_DUMP_DOT_DIR", logpath);
}
GError* error = NULL;
#endif
GError* error = nullptr;
if (!gst_init_check(&argc, &argv, &error)) {
qCritical() << "gst_init_check() failed: " << error->message;
g_error_free(error);

Loading…
Cancel
Save