Skip to content

Commit f8ffb82

Browse files
committed
chore: Move default env from Chala to Staging
- Documentation refactorings and typo fix after Baris feedback
1 parent 1f5326d commit f8ffb82

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@ Thumbs.db
5252

5353
# Allow automatic IntelliJ's automatic copyright
5454
!.idea/copyright/**
55-
**/demo.properties

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ For licensing information, see the attached LICENSE file and the list of third-p
1010

1111
If you compile the open source software that we make available from time to time to develop your own mobile, desktop or web application, and cause that application to connect to our servers for any purposes, we refer to that resulting application as an “Open Source App”. All Open Source Apps are subject to, and may only be used and/or commercialized in accordance with, the Terms of Use applicable to the Wire Application, which can be found at https://wire.com/legal/#terms. Additionally, if you choose to build an Open Source App, certain restrictions apply, as follows:
1212

13-
a. You agree not to change the way the Open Source App connects and interacts with our servers; b. You agree not to weaken any of the security features of the Open Source App; c. You agree not to use our servers to store data for purposes other than the intended and original functionality of the Open Source App; d. You acknowledge that you are solely responsible for any and all updates to your Open Source App.
13+
a. You agree not to change the way the Open Source App connects and interacts with our servers;
14+
15+
b. You agree not to weaken any of the security features of the Open Source App;
16+
17+
c. You agree not to use our servers to store data for purposes other than the intended and original functionality of the Open Source App;
18+
19+
d. You acknowledge that you are solely responsible for any and all updates to your Open Source App.
1420

1521
For clarity, if you compile the open source software that we make available from time to time to develop your own mobile, desktop or web application, and do not cause that application to connect to our servers for any purposes, then that application will not be deemed an Open Source App and the foregoing will not apply to that application.
1622

@@ -40,6 +46,7 @@ For information about usage and onboarding refer to [Sdk tutorial](docs/APPLICAT
4046
* Access to the file system to store cryptographic keys and data
4147

4248
## Import with
49+
The latest release is avaliable at [Maven Central](https://central.sonatype.com/artifact/com.wire/wire-apps-jvm-sdk).
4350

4451
### Gradle
4552

@@ -51,7 +58,7 @@ dependencies {
5158

5259
### Maven
5360
```xml
54-
<dependency>
61+
<dependency>persistence
5562
<groupId>com.wire</groupId>
5663
<artifactId>wire-apps-jvm-sdk</artifactId>
5764
<version>0.0.1</version>
@@ -63,7 +70,6 @@ dependencies {
6370
WIRE_SDK_USER_ID=abcd-1234-efgh-5678
6471
6572
WIRE_SDK_PASSWORD=randomPassword
66-
WIRE_SDK_CLIENT=dd228f6343d3916
6773
WIRE_SDK_ENVIRONMENT=my.domain.link
6874
```
6975

@@ -86,6 +92,3 @@ You can define the implementation of BackendClient to use, by changing it in the
8692
testing instead of the Application API and also some environment variables specified above.
8793
* BackendClientImpl is the real implementation of the SDK, targeting the Wire backend as an
8894
Application
89-
90-
For the demo setup, some default properties are there, you can override those values
91-
by creating a `demo.properties` file in the classpath (e.g. `src/main/resources/demo.properties`).

docs/APPLICATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class MyWireEventsHandler : WireEventsHandler() {
113113
}
114114
```
115115

116-
**NOTE**: Your application can simply call `startListening()` and a new thread is created and will keep the Application running and receiving events. To stop it, just close the Application (Cmd+d) or call `stopListening()`
116+
**NOTE**: Your application can simply call `startListening()` and a new thread is created and will keep the Application running and receiving events. To stop it, just close the Application (Ctrl+C/Cmd+C) or call `stopListening()`
117117

118118
## Sending Messages
119119

lib/src/main/kotlin/com/wire/integrations/jvm/client/BackendClientDemo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ internal class BackendClientDemo(
444444
System.getenv("WIRE_SDK_PASSWORD") ?: "Aqa123456!"
445445

446446
val DEMO_ENVIRONMENT: String =
447-
System.getenv("WIRE_SDK_ENVIRONMENT") ?: "chala.wire.link"
447+
System.getenv("WIRE_SDK_ENVIRONMENT") ?: "staging.zinfra.io"
448448
}
449449
}
450450

sample/src/main/kotlin/com/wire/integrations/sample/Main.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fun main() {
4545
id = UUID.fromString("2afce87f-3195-4c51-9e7c-3b01faf13ac5"),
4646
domain = "staging.zinfra.io"
4747
)
48-
logger.info(applicationManager.getUser(selfUser).toString())
48+
logger.info(applicationManager.getUser(selfUser).toString())
4949
logger.info("Wire backend domain: ${applicationManager.getBackendConfiguration().domain}")
5050

5151
// Use wireAppSdk.stop() to stop the SDK or just stop it with Ctrl+C/Cmd+C

0 commit comments

Comments
 (0)