This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Shared to setup engine: | |
func setupRtcEngine(from clientRole: AgoraClientRole) { | |
rtcEngine.setChannelProfile(.liveBroadcasting) | |
rtcEngine.setClientRole(clientRole) | |
rtcEngine.enableVideo() | |
let config = AgoraVideoEncoderConfiguration(size: AgoraVideoDimension640x360, frameRate: .fps15, bitrate: 400, orientationMode: .fixedPortrait) | |
rtcEngine.setVideoEncoderConfiguration(config) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl x509 -in aps_development.cer -inform der -out aps_dev_cert.pem | |
openssl pkcs12 -nocerts -out aps_dev_key.pem -in aps_development.p12 | |
cat aps_dev_cert.pem aps_dev_key.pem > aps_dev.pem | |
openssl x509 -in aps_production.cer -inform der -out aps_prod_cert.pem | |
openssl pkcs12 -nocerts -out aps_prod_key.pem -in aps_production.p12 | |
cat aps_prod_cert.pem aps_prod_key.pem > aps_prod.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET="$PROJECT_DIR/$PRODUCT_NAME/Info.plist" | |
echo $TARGET | |
OLD_NUMBER=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$TARGET"` | |
NEW_NUMBER=$((OLD_NUMBER+=1)) | |
`/usr/libexec/PlistBuddy -c "Set CFBundleVersion $NEW_NUMBER" "$TARGET"` |