Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7 from hapi-robo/devel
Browse files Browse the repository at this point in the history
Adds Media Functions to Android app
  • Loading branch information
r-oung authored Jul 22, 2020
2 parents ceef473 + dd41e40 commit 3dad00e
Show file tree
Hide file tree
Showing 49 changed files with 495 additions and 4,531 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.cert
*.env
*.key
*.cert
*.apk
webapp/node_modules/
*venv/
Expand All @@ -12,3 +13,4 @@ android/build
android/captures
android/.externalNativeBuild
android/.cxx
webapp/ssl/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "mosquitto"]
path = mosquitto
url = https://github.com/eclipse/mosquitto.git
[submodule "connect_webapp"]
path = connect_webapp
url = https://github.com/ray-hrst/connect_webapp.git
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# jitsi-temi
# Connect
A free and open-source alternative to [temi](https://www.robotemi.com/)'s default video-conferencing application.

This is still a prototype. This project uses MQTT for message transport between the client's web-brower user-interface and robot. It uses [Jitsi-Meet](https://jitsi.org/), a free open-source WebRTC framework, for video conferencing.
Expand All @@ -11,7 +11,7 @@ The project consists of 3 components:

## Folder Structure
```
jitsi-temi Root directory
connect Root directory
├─ android Android application to be installed on temi
├─ config MQTT broker configuration files
├─ mosquitto MQTT broker
Expand Down
1 change: 1 addition & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
/captures
.externalNativeBuild
.cxx
secrets.properties
16 changes: 13 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apply plugin: 'com.android.application'

def secretsPropertiesFile = rootProject.file("secrets.properties")
def secretsProperties = new Properties()
secretsProperties.load(new FileInputStream(secretsPropertiesFile))

android {
compileSdkVersion 29
defaultConfig {
Expand All @@ -9,6 +13,13 @@ android {
versionCode 1
versionName "0.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

// secrets
// @TODO: Doing this because it's easier for developer. Consider using Android Keystore API
// Ref: https://github.com/codepath/android_guides/wiki/Storing-Secret-Keys-in-Android
buildConfigField("String", "MQTT_HOSTNAME", secretsProperties['MQTT_HOSTNAME'])
buildConfigField("String", "MQTT_USERNAME", secretsProperties['MQTT_USERNAME'])
buildConfigField("String", "MQTT_PASSWORD", secretsProperties['MQTT_PASSWORD'])
}
signingConfigs {
debug {
Expand Down Expand Up @@ -46,9 +57,8 @@ dependencies {
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

// Jitsi Meet
// https://github.com/jitsi/jitsi-meet
// https://github.com/jitsi/jitsi-maven-repository/tree/master/releases/org/jitsi/react/jitsi-meet-sdk
implementation ('org.jitsi.react:jitsi-meet-sdk:2.7.0') { transitive = true }
implementation('org.jitsi.react:jitsi-meet-sdk:2.+') { transitive = true }

// paho-mqtt
// https://github.com/eclipse/paho.mqtt.java
Expand All @@ -58,5 +68,5 @@ dependencies {

// temi
// https://github.com/robotemi/sdk
implementation 'com.robotemi:sdk:0.10.55'
implementation 'com.robotemi:sdk:0.10.+'
}
16 changes: 6 additions & 10 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,22 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/SkillTheme">
<activity android:name=".WebviewActivity"></activity>
<activity android:name=".VideoActivity" />
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<!-- MQTT service -->
<service
android:name="org.eclipse.paho.android.service.MqttService" />

<!-- temi Meta Data -->
</activity> <!-- MQTT service -->
<service android:name="org.eclipse.paho.android.service.MqttService" /> <!-- temi Meta Data -->
<meta-data
android:name="com.robotemi.sdk.metadata.SKILL"
android:value="@string/app_name"/>

android:value="@string/app_name" />
<meta-data
android:name="com.robotemi.sdk.metadata.KIOSK"
android:value="TRUE"/>
android:value="TRUE" />
</application>

</manifest>
Loading

0 comments on commit 3dad00e

Please sign in to comment.