-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,814 changed files
with
11,955 additions
and
10,883 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,18 @@ | ||
name: Update Gradle Wrapper | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
update-gradle-wrapper: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Update Gradle Wrapper | ||
uses: gradle-update/update-gradle-wrapper-action@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
target-branch: develop |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
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,107 @@ | ||
# Automate user interface tests | ||
|
||
Element Android ensures that some fundamental flows are properly working by running automated user interface tests. | ||
Ui tests are using the android [Espresso](https://developer.android.com/training/testing/espresso) library. | ||
|
||
Tests can be run on a real device, or on a virtual device (such as the emulator in Android Studio). | ||
|
||
Currently the test are covering a small set of application flows: | ||
- Registration | ||
- Self verification via emoji | ||
- Self verification via passphrase | ||
|
||
## Prerequisites: | ||
|
||
Out of the box, the tests use one of the homeservers (located at http://localhost:8080) of the "Demo Federation of Homeservers" (https://github.com/matrix-org/synapse#running-a-demo-federation-of-synapses). | ||
|
||
You first need to follow instructions to set up Synapse in development mode at https://github.com/matrix-org/synapse#synapse-development. If you have already installed all dependencies, the steps are: | ||
|
||
```shell script | ||
$ git clone https://github.com/matrix-org/synapse.git | ||
$ cd synapse | ||
$ virtualenv -p python3 env | ||
$ source env/bin/activate | ||
(env) $ python -m pip install --no-use-pep517 -e . | ||
``` | ||
|
||
Every time you want to launch these test homeservers, type: | ||
|
||
```shell script | ||
$ virtualenv -p python3 env | ||
$ source env/bin/activate | ||
(env) $ demo/start.sh --no-rate-limit | ||
``` | ||
|
||
**Emulator/Device set up** | ||
|
||
When running the test via android studio on a device, you have to disable system animations in order for the test to work properly. | ||
|
||
First, ensure developer mode is enabled: | ||
|
||
- To enable developer options, tap the **Build Number** option 7 times. You can find this option in one of the following locations, depending on your Android version: | ||
|
||
- Android 9 (API level 28) and higher: **Settings > About Phone > Build Number** | ||
- Android 8.0.0 (API level 26) and Android 8.1.0 (API level 26): **Settings > System > About Phone > Build Number** | ||
- Android 7.1 (API level 25) and lower: **Settings > About Phone > Build Number** | ||
|
||
On your device, under **Settings > Developer options**, disable the following 3 settings: | ||
|
||
- Window animation scale | ||
- Transition animation scale | ||
- Animator duration scale | ||
|
||
## Run the tests | ||
|
||
Once Synapse is running, and an emulator is running, you can run the UI tests. | ||
|
||
### From the source code | ||
|
||
Click on the green arrow in front of each test. Clicking on the arrow in front of the test class, or from the package directory does not always work (Tests not found issue). | ||
|
||
### From command line | ||
|
||
````shell script | ||
./gradlew vector:connectedGplayDebugAndroidTest | ||
```` | ||
|
||
To run all the tests from the `vector` module. | ||
|
||
In case of trouble, you can try to uninstall the previous installed test APK first with this command: | ||
|
||
```shell script | ||
adb uninstall im.vector.app.debug.test | ||
``` | ||
## Recipes | ||
|
||
We added some specific Espresso IdlingResources, and other utilities for matrix related tests | ||
|
||
### Wait for initial sync | ||
|
||
```kotlin | ||
// Wait for initial sync and check room list is there | ||
withIdlingResource(initialSyncIdlingResource(uiSession)) { | ||
onView(withId(R.id.roomListContainer)) | ||
.check(matches(isDisplayed())) | ||
} | ||
``` | ||
|
||
### Accessing current activity | ||
|
||
```kotlin | ||
val activity = EspressoHelper.getCurrentActivity()!! | ||
val uiSession = (activity as HomeActivity).activeSessionHolder.getActiveSession() | ||
``` | ||
|
||
### Interact with other session | ||
|
||
It's possible to create a session via the SDK, and then use this session to interact with the one that the emulator is using (to check verifications for example) | ||
|
||
```kotlin | ||
@Before | ||
fun initAccount() { | ||
val context = InstrumentationRegistry.getInstrumentation().targetContext | ||
val matrix = Matrix.getInstance(context) | ||
val userName = "foobar_${System.currentTimeMillis()}" | ||
existingSession = createAccountAndSync(matrix, userName, password, true) | ||
} | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
Turvalised ning hajutatud vestlused ja VoIP-kõned. Sinu suhtlus on üliturvaline. |
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 @@ | ||
Element (varem Riot.im) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,30 @@ | ||
Element è un nuovo tipo di app di messaggistica e collaborazione che: | ||
|
||
1. Ti mette al controllo per preservare la tua privacy | ||
2. Ti lascia comunicare con chiunque nella rete Matrix e oltre, integrandosi con app come Slack | ||
3. Ti protegge da pubblicità, raccolta di dati e piattaforme chiuse | ||
4. Ti protegge con la crittografia end-to-end, con la firma incrociata per verificare gli altri | ||
|
||
Element è completamente diverso dalle altre app di messaggistica e collaborazione perchè è decentralizzato e open source. | ||
|
||
Element può essere gestito in locale - o puoi scegliere un host - in modo che tu abbia privacy, possesso e controllo dei tuoi dati e conversazioni. Ti dà accesso ad una rete aperta, quindi non sei limitato a parlare solo con altri utenti Element. Ed è molto sicuro. | ||
|
||
Element può fare tutto ciò perchè funziona su Matrix - lo standard per comunicazioni aperte e decentralizzate. | ||
|
||
Element ti mette al controllo lasciandoti scegliere chi gestisce il server delle tue conversazioni. Dall'app Element, hai diverse opzioni: | ||
|
||
1. Crea un account gratuito sul server pubblico matrix.org gestito dagli sviluppatori di Matrix, o scegli tra migliaia di server pubblici gestiti da volontari | ||
2. Gestisci autonomamente un account installando un server sul tuo hardware | ||
3. Registra un account su un server personalizzato iscrivendoti alla piattaforma Element Matrix Services | ||
|
||
<b>Perchè scegliere Element?</b> | ||
|
||
<b>POSSIEDI I TUOI DATI</b>: decidi dove tenere i tuoi dati e messaggi. Sono tuoi e li controlli tu, non qualche MEGADITTA che raccoglie i tuoi dati o ne dà l'accesso a terze parti. | ||
|
||
<b>MESSAGGISTICA E COLLABORAZIONE APERTE</b>: puoi chattare con chiunque nella rete Matrix, usando Element o un'altra app Matrix, o anche se si sta usando un sistema di messaggistica diverso come Slack, IRC o XMPP. | ||
|
||
<b>SUPER SICURO</b>: vera crittografia end-to-end (solo chi è nella conversazione può decifrare i messaggi) e firma incrociata per verificare i dispositivi dei partecipanti. | ||
|
||
<b>COMUNICAZIONE COMPLETA</b>: messaggi, chiamate audio e video, condivisione file e schermo, un vasto numero di integrazioni, bot e widget. Crea stanze, comunità, resta in contatto e porta a termine gli impegni. | ||
|
||
<b>OVUNQUE TU SIA</b>: resta in contatto ovunque tu sia con la cronologia dei messaggi sincronizzata tra tutti i tuoi dispositivi e in rete su https://app.element.io. |
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 @@ | ||
Chat e VoIP decentralizzati sicuri. Tieni lontani i tuoi dati dalle terze parti. |
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 @@ | ||
Element (ex Riot.im) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
Element (o novo Riot.im) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Binary file not shown.
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,6 @@ | ||
#Thu Jul 02 12:33:07 CEST 2020 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionSha256Sum=0080de8491f0918e4f529a6db6820fa0b9e818ee2386117f4394f95feb1d5583 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip |
Oops, something went wrong.