Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Added staging build config (#1109)

Michael Rademakerb9117f8c253f
diff --git a/console/android/ORLib/build.gradle b/console/android/ORLib/build.gradle
index 5d0a3bfa1..e0415f474 100644
--- a/console/android/ORLib/build.gradle
+++ b/console/android/ORLib/build.gradle
@@ -19,6 +19,10 @@ android {
}
buildTypes {
+ staging {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
diff --git a/console/iOS/ORLib/ORLib/UI/ORViewController.swift b/console/iOS/ORLib/ORLib/UI/ORViewController.swift
index 5dab42642..eb36bb73c 100644
--- a/console/iOS/ORLib/ORLib/UI/ORViewController.swift
+++ b/console/iOS/ORLib/ORLib/UI/ORViewController.swift
@@ -94,6 +94,7 @@ open class ORViewcontroller : UIViewController {
} else {
sbHeight = UIApplication.shared.statusBarFrame.height
}
+ webCfg.allowsInlineMediaPlayback = true
let webFrame = CGRect(x: 0, y: sbHeight, width: view.frame.size.width, height: view.frame.size.height - sbHeight)
myWebView = WKWebView(frame: webFrame, configuration: webCfg)
myWebView?.autoresizingMask = [.flexibleWidth, .flexibleHeight];