Merge ios stuff into master

pull/4/head
Doug McLain 3 years ago
parent b0d0321ecc
commit 0e7efdc189

@ -19,8 +19,12 @@ macx:QT += serialport
macx::INCLUDEPATH += /usr/local/include macx::INCLUDEPATH += /usr/local/include
macx:LIBS += -L/usr/local/lib -framework AVFoundation macx:LIBS += -L/usr/local/lib -framework AVFoundation
macx:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14 macx:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14
macx:QMAKE_INFO_PLIST = Info.plist macx:QMAKE_INFO_PLIST = Info.plist.mac
ios:LIBS += -framework AVFoundation ios:LIBS += -lvocoder -framework AVFoundation
ios:QMAKE_TARGET_BUNDLE_PREFIX = com.dudetronics
ios:QMAKE_BUNDLE = droidstar
ios:VERSION = 0.43.20
ios:QMAKE_ASSET_CATALOGS += Images.xcassets
ios:QMAKE_INFO_PLIST = Info.plist ios:QMAKE_INFO_PLIST = Info.plist
VERSION_BUILD='$(shell cd $$PWD;git rev-parse --short HEAD)' VERSION_BUILD='$(shell cd $$PWD;git rev-parse --short HEAD)'
DEFINES += VERSION_NUMBER=\"\\\"$${VERSION_BUILD}\\\"\" DEFINES += VERSION_NUMBER=\"\\\"$${VERSION_BUILD}\\\"\"
@ -41,7 +45,6 @@ HEADERS += \
SHA256.h \ SHA256.h \
YSFConvolution.h \ YSFConvolution.h \
YSFFICH.h \ YSFFICH.h \
androidserialport.h \
audioengine.h \ audioengine.h \
cbptc19696.h \ cbptc19696.h \
cgolay2087.h \ cgolay2087.h \
@ -58,12 +61,12 @@ HEADERS += \
nxdncodec.h \ nxdncodec.h \
p25codec.h \ p25codec.h \
refcodec.h \ refcodec.h \
serialambe.h \
serialmodem.h \
vocoder_plugin.h \ vocoder_plugin.h \
xrfcodec.h \ xrfcodec.h \
ysfcodec.h ysfcodec.h
android:HEADERS += androidserialport.h
macx:HEADERS += micpermission.h macx:HEADERS += micpermission.h
!ios:HEADERS += serialambe.h serialmodem.h
SOURCES += \ SOURCES += \
CRCenc.cpp \ CRCenc.cpp \
@ -73,7 +76,6 @@ SOURCES += \
SHA256.cpp \ SHA256.cpp \
YSFConvolution.cpp \ YSFConvolution.cpp \
YSFFICH.cpp \ YSFFICH.cpp \
androidserialport.cpp \
audioengine.cpp \ audioengine.cpp \
cbptc19696.cpp \ cbptc19696.cpp \
cgolay2087.cpp \ cgolay2087.cpp \
@ -90,10 +92,10 @@ SOURCES += \
nxdncodec.cpp \ nxdncodec.cpp \
p25codec.cpp \ p25codec.cpp \
refcodec.cpp \ refcodec.cpp \
serialambe.cpp \
serialmodem.cpp \
xrfcodec.cpp \ xrfcodec.cpp \
ysfcodec.cpp ysfcodec.cpp
android:SOURCES += androidserialport.cpp
!ios:SOURCES += serialambe.cpp serialmodem.cpp
!contains(DEFINES, USE_EXTERNAL_CODEC2){ !contains(DEFINES, USE_EXTERNAL_CODEC2){
HEADERS += \ HEADERS += \
codec2/codec2_api.h \ codec2/codec2_api.h \

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

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

@ -2,23 +2,46 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!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.0">
<dict> <dict>
<key>CFBundleExecutable</key> <key>CFBundleDisplayName</key>
<string>DroidStar</string> <string>DroidStar</string>
<key>CFBundleIconFile</key> <key>CFBundleExecutable</key>
<string></string> <string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconName</key>
<string>AppIcon</string>
<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIcons~ipad</key>
<dict/>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>com.dudetronics.droidstar</string> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(QMAKE_SHORT_VERSION)</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>${QMAKE_PKGINFO_TYPEINFO}</string>
<key>NSMicrophoneUsageDescription</key> <key>CFBundleVersion</key>
<string>You know you want to...</string> <string>$(QMAKE_FULL_VERSION)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
<string>${IPHONEOS_DEPLOYMENT_TARGET}</string>
<key>NOTE</key> <key>NOTE</key>
<string>This file was generated by Qt/QMake.</string> <string>This file was generated by Qt/QMake.</string>
<key>NSPrincipalClass</key> <key>NSCameraUsageDescription</key>
<string>NSApplication</string> <string>This app uses the microphone to transmit audio</string>
<key>NSSupportsAutomaticGraphicsSwitching</key> <key>NSMicrophoneUsageDescription</key>
<true/> <string>You know you want to...</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict> </dict>
</plist> </plist>

@ -0,0 +1,24 @@
<?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">
<dict>
<key>CFBundleExecutable</key>
<string>DroidStar</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.dudetronics.droidstar</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>NSMicrophoneUsageDescription</key>
<string>You know you want to...</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
</plist>

@ -246,6 +246,8 @@ bool Codec::load_vocoder_plugin()
#endif #endif
#else #else
#if defined(Q_OS_IOS) #if defined(Q_OS_IOS)
QString config_path = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + "/dudetronics";
QString voc = config_path + "/vocoder_plugin." + QSysInfo::productType() + "." + QSysInfo::currentCpuArchitecture();
if(QFileInfo::exists(voc)){ if(QFileInfo::exists(voc)){
m_mbevocoder = new VocoderPlugin(); m_mbevocoder = new VocoderPlugin();
return true; return true;

@ -671,7 +671,9 @@ void REFCodec::process_rx_data()
for(int i = 0; i < s; ++i){ for(int i = 0; i < s; ++i){
out.append(m_rxmodemq.dequeue()); out.append(m_rxmodemq.dequeue());
} }
#if !defined(Q_OS_IOS)
m_modem->write(out); m_modem->write(out);
#endif
} }
} }

Loading…
Cancel
Save