Merge remote-tracking branch 'origin/yet-another-ios-packaging-fix' into landing-silo
@ -8,7 +8,6 @@ top_builddir=$$shadowed($$PWD)
|
|||||||
VERSION_INFO=$$cat(version.txt)
|
VERSION_INFO=$$cat(version.txt)
|
||||||
APP_VERSION=$$member(VERSION_INFO, 0)
|
APP_VERSION=$$member(VERSION_INFO, 0)
|
||||||
APP_REVISION=$$member(VERSION_INFO, 1)
|
APP_REVISION=$$member(VERSION_INFO, 1)
|
||||||
message("APP_VERSION: $${APP_VERSION} ($${APP_REVISION})")
|
|
||||||
|
|
||||||
DEFINES+=APP_VERSION=\\\"$${APP_VERSION}\\\"
|
DEFINES+=APP_VERSION=\\\"$${APP_VERSION}\\\"
|
||||||
android:QMAKE_POST_LINK += cp $$top_srcdir/version.txt $$top_builddir/
|
android:QMAKE_POST_LINK += cp $$top_srcdir/version.txt $$top_builddir/
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
include(config.pri)
|
include(config.pri)
|
||||||
|
message("APP_VERSION: $${APP_VERSION} ($${APP_REVISION})")
|
||||||
|
|
||||||
TEMPLATE=subdirs
|
TEMPLATE=subdirs
|
||||||
|
|
||||||
|
|||||||
@ -69,6 +69,7 @@ ios: {
|
|||||||
QMAKE_BUNDLE = nymeaApp
|
QMAKE_BUNDLE = nymeaApp
|
||||||
# Configure generated xcode project to have our bundle id
|
# Configure generated xcode project to have our bundle id
|
||||||
xcode_product_bundle_identifier_setting.value = $${QMAKE_TARGET_BUNDLE_PREFIX}.$${QMAKE_BUNDLE}
|
xcode_product_bundle_identifier_setting.value = $${QMAKE_TARGET_BUNDLE_PREFIX}.$${QMAKE_BUNDLE}
|
||||||
|
QMAKE_ASSET_CATALOGS += ../packaging/ios/AppIcons.xcassets
|
||||||
plist.input = ../packaging/ios/Info.plist.in
|
plist.input = ../packaging/ios/Info.plist.in
|
||||||
plist.output = $$OUT_PWD/Info.plist
|
plist.output = $$OUT_PWD/Info.plist
|
||||||
QMAKE_SUBSTITUTES += plist
|
QMAKE_SUBSTITUTES += plist
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 588 B After Width: | Height: | Size: 588 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 880 B After Width: | Height: | Size: 880 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
116
packaging/ios/AppIcons.xcassets/AppIcon.appiconset/Contents.json
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "AppIcon20x20@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "AppIcon20x20@3x.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "AppIcon29x29@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "AppIcon29x29@3x.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "AppIcon40x40@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "AppIcon40x40@3x.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "60x60",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "AppIcon60x60@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "60x60",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "AppIcon60x60@3x.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "AppIcon20x20.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "AppIcon20x20@2x.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.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "AppIcon40x40@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "76x76",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "AppIcon76x76.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "76x76",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "AppIcon76x76@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "83.5x83.5",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "AppIcon167x167.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "1024x1024",
|
||||||
|
"idiom" : "ios-marketing",
|
||||||
|
"filename" : "AppIcon1024x1024.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
packaging/ios/AppIcons.xcassets/Contents.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -8,31 +8,8 @@
|
|||||||
<string>nymea-app</string>
|
<string>nymea-app</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>Created by Qt/QMake</string>
|
<string>Created by Qt/QMake</string>
|
||||||
<key>CFBundleIcons</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundlePrimaryIcon</key>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleIconFiles</key>
|
|
||||||
<array>
|
|
||||||
<string>AppIcon1024x1024.png</string>
|
|
||||||
<string>AppIcon20x20.png</string>
|
|
||||||
<string>AppIcon20x20@2x.png</string>
|
|
||||||
<string>AppIcon20x20@3x.png</string>
|
|
||||||
<string>AppIcon29x29.png</string>
|
|
||||||
<string>AppIcon29x29@2x.png</string>
|
|
||||||
<string>AppIcon29x29@3x.png</string>
|
|
||||||
<string>AppIcon40x40.png</string>
|
|
||||||
<string>AppIcon40x40@2x.png</string>
|
|
||||||
<string>AppIcon40x40@3x.png</string>
|
|
||||||
<string>AppIcon60x60@2x.png</string>
|
|
||||||
<string>AppIcon60x60@3x.png</string>
|
|
||||||
<string>AppIcon76x76.png</string>
|
|
||||||
<string>AppIcon76x76@2x.png</string>
|
|
||||||
</array>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>io.guh.nymeaapp</string>
|
<string>io.guh.nymeaApp</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>nymea-app</string>
|
<string>nymea-app</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
@ -42,7 +19,7 @@
|
|||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>${QMAKE_PKGINFO_TYPEINFO}</string>
|
<string>${QMAKE_PKGINFO_TYPEINFO}</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1</string>
|
<string>2</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
@ -58,5 +35,7 @@
|
|||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
|
<key>NSBluetoothPeripheralUsageDescription</key>
|
||||||
|
<string>Nymea boxes can be connected to WiFi using a Bluetooth setup. Also, this app can connect to nymea boxes using Bluetooth only, without requiring WiFi at all.</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@ -7,9 +7,9 @@ function exportImage() {
|
|||||||
if [ ${scaleFactor} -ne 1 ]; then
|
if [ ${scaleFactor} -ne 1 ]; then
|
||||||
finalSize=$((size * scaleFactor))
|
finalSize=$((size * scaleFactor))
|
||||||
echo final size is ${finalSize}
|
echo final size is ${finalSize}
|
||||||
inkscape AppIcon.svg -e AppIcon${size}x${size}@${scaleFactor}x.png -C -w $finalSize -h $finalSize
|
inkscape AppIcon.svg -e AppIcons.xcassets/AppIcon.appiconset/AppIcon${size}x${size}@${scaleFactor}x.png -C -w $finalSize -h $finalSize
|
||||||
else
|
else
|
||||||
inkscape AppIcon.svg -e AppIcon${size}x${size}.png -C -w ${size} -h ${size}
|
inkscape AppIcon.svg -e AppIcons.xcassets/AppIcon.appiconset/AppIcon${size}x${size}.png -C -w ${size} -h ${size}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,6 +27,7 @@ SIZES=(
|
|||||||
"60:3"
|
"60:3"
|
||||||
"76:1"
|
"76:1"
|
||||||
"76:2"
|
"76:2"
|
||||||
|
"167:1"
|
||||||
"1024:1"
|
"1024:1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||