-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added base webrtc functions and classes * WIP webrtc handling offer/answer protocols * WebRTC functions implemented * Added base testing code * reformat code * removed license conflicts * beautify code * reformat code
- Loading branch information
Showing
14 changed files
with
434 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.kt linguist-language=Kotlin |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
language: android | ||
sudo: required | ||
jdk: oraclejdk8 | ||
|
||
before_cache: | ||
-rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
-rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
|
||
env: | ||
global: | ||
- ANDROID_API=29 | ||
- EMULATOR_API=29 | ||
- ANDROID_BUILD_TOOLS=29.0.2 | ||
- ADB_INSTALL_TIMEOUT=5 # minutes | ||
|
||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- build-tools-$ANDROID_BUILD_TOOLS | ||
- android-$ANDROID_API | ||
- android-$EMULATOR_API_LEVEL | ||
- extra-google-m2repository | ||
- extra-android-m2repository # for design library | ||
- addon-google_apis-google-19 # google play services | ||
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API_LEVEL | ||
- sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API_LEVEL | ||
licenses: | ||
- android-sdk-preview-license-.+ | ||
- android-sdk-license-.+ | ||
- google-gdk-license-.+ | ||
script: | ||
- ./gradlew build |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
# KotlinSyft | ||
# <img src="logo/pysyft_android.png" height="54"> KotlinSyft | ||
|
||
![License](https://img.shields.io/github/license/openmined/KotlinSyft) | ||
![Language](https://img.shields.io/github/languages/top/openmined/KotlinSyft) | ||
![Size](https://img.shields.io/github/repo-size/openmined/KotlinSyft) | ||
|
||
|
||
## Introduction | ||
This is the android worker Library for [PySyft](https://github.com/OpenMined/PySyft) | ||
## License | ||
|
||
KotlinSyft is available under the Apache 2 license. See the LICENSE file for more info. | ||
Of course, [PySyft](https://github.com/openmined/pysyft) has the ability to run in its own environment but the final training procedure needs to deployed on the mobile workers using Torchscript. | ||
|
||
**KotlinSyft employs P2P connectivity for realization of distributed pysyft protocols.** | ||
|
||
### Local Development | ||
|
||
1. Fork and clone | ||
2. Open Android Studio and import project | ||
4. Do your work. | ||
5. Push to your fork | ||
6. Submit a PR to openmined/KotlinSyft | ||
|
||
### Contributing | ||
|
||
Read [CONTRIBUTING.md](https://github.com/OpenMined/KotlinSyft/blob/master/CONTRIBUTING.md) | ||
|
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include ':demo-app' | ||
include ':syftlib' | ||
|
||
rootProject.name='KotlinSyft' | ||
rootProject.name = 'KotlinSyft' |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<lint> | ||
<issue id="InvalidPackage" severity="ignore" /> | ||
<issue id="VisibleForTests" severity="error" /> | ||
<issue id="ContentDescription" severity="error" /> | ||
</lint> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="org.openmined.syft" /> | ||
<manifest package="org.openmined.syft" /> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.openmined.syft | ||
|
||
import java.net.Socket | ||
|
||
|
||
class Socket(private val url: String, private val workerId: String, keepAliveTimeout: Int = 20000) { | ||
|
||
val socket = Socket(url, 888) | ||
val timerId: String? = null | ||
|
||
fun send(type: String, data: String) { | ||
//TODO decide okhttp vs scarlet for websocket connections | ||
} | ||
|
||
fun stop() { | ||
socket.close() | ||
} | ||
} |
Oops, something went wrong.