Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
5949450b53 |
4 changed files with 7 additions and 50 deletions
4
.drone.yml
Normal file
4
.drone.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
image: docker.vokalinteractive.com/android:latest
|
||||
env:
|
||||
script:
|
||||
- ./gradlew test assemble
|
32
.travis.yml
32
.travis.yml
|
@ -1,32 +0,0 @@
|
|||
language: android
|
||||
jdk: oraclejdk8
|
||||
|
||||
# Install Android SDK
|
||||
android:
|
||||
components:
|
||||
- tools
|
||||
- platform-tools
|
||||
- build-tools-24.0.2
|
||||
- android-24
|
||||
- extra-android-m2repository
|
||||
|
||||
# Cache gradle dependencies
|
||||
# https://docs.travis-ci.com/user/languages/android/#Caching
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.gradle/caches/
|
||||
- $HOME/.gradle/wrapper/
|
||||
|
||||
env:
|
||||
- GRADLE_OPTS=-Xmx2048m
|
||||
|
||||
script:
|
||||
# Lint fails because travis doesn't have platform-tools 24
|
||||
# https://github.com/travis-ci/travis-ci/issues/6699
|
||||
#- ./gradlew lint
|
||||
- ./gradlew core:test
|
||||
- ./gradlew server:release
|
||||
- ./gradlew integration:assemble
|
||||
- ./gradlew android:assembleRelRelease || ./gradlew android:assembleRelRelease
|
11
README.md
11
README.md
|
@ -1,17 +1,6 @@
|
|||
PROJECT DISCONTINUED
|
||||
====================
|
||||
|
||||
Unfortunately, I won't be able to continue development on Ensichat, due to lack of time. I suggest
|
||||
you give [Briar](https://briarproject.org/) a try instead.
|
||||
|
||||
If you wish to take over maintenance of the project, please contact me.
|
||||
|
||||
Ensichat
|
||||
========
|
||||
|
||||
[![Build Status](https://travis-ci.org/Nutomic/ensichat.svg?branch=master)](https://travis-ci.org/Nutomic/ensichat)
|
||||
[![License: MPLv2](https://img.shields.io/badge/License-MPLv2-blue.svg)](https://opensource.org/licenses/MPL-2.0)
|
||||
|
||||
Instant messenger for Android that is fully decentralized, and uses strong end-to-end
|
||||
encryption. Messages are sent directly between devices via Bluetooth or Internet, without any
|
||||
central server. Relay nodes are used to ensure message delivery, even if the target node is
|
||||
|
|
|
@ -6,18 +6,14 @@ import android.test.AndroidTestCase
|
|||
|
||||
class BluetoothInterfaceTest extends AndroidTestCase {
|
||||
|
||||
private lazy val btInterface = new BluetoothInterface(getContext, new Handler(), null)
|
||||
private lazy val adapter = new BluetoothInterface(getContext, new Handler(), null)
|
||||
|
||||
/**
|
||||
* Test for issue [[https://github.com/Nutomic/ensichat/issues/3 #3]].
|
||||
*/
|
||||
def testStartBluetoothOff(): Unit = {
|
||||
val btAdapter = BluetoothAdapter.getDefaultAdapter
|
||||
if (btAdapter == null)
|
||||
return
|
||||
|
||||
btAdapter.disable()
|
||||
btInterface.create()
|
||||
BluetoothAdapter.getDefaultAdapter.disable()
|
||||
adapter.create()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue