Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xx Messenger Android
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
android
xx Messenger Android
Commits
44c17555
Commit
44c17555
authored
Oct 12, 2022
by
Kamal Bramwell
Browse files
Options
Downloads
Patches
Plain Diff
Updated testnet ud contact and certificate
parent
04a5f718
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
app/src/main/java/io/xxlabs/messenger/bindings/wrapper/bindings/BindingsWrapperBindings.kt
+25
-16
25 additions, 16 deletions
...nger/bindings/wrapper/bindings/BindingsWrapperBindings.kt
with
29 additions
and
16 deletions
.gitignore
+
4
−
0
View file @
44c17555
...
...
@@ -85,3 +85,7 @@ app/src/main/res/raw/ud_contact_test.bin
app/src/main/res/raw/ud_elixxir_io.crt
fastlane/Fastfile
app/src/main/res/raw/ud_testnet_contact.bin
app/src/main/res/raw/ud_testnet.crt
This diff is collapsed.
Click to expand it.
app/src/main/java/io/xxlabs/messenger/bindings/wrapper/bindings/BindingsWrapperBindings.kt
+
25
−
16
View file @
44c17555
...
...
@@ -131,23 +131,32 @@ class BindingsWrapperBindings {
private
fun
UserDiscoveryWrapperBindings
.
onUdInitialized
()
{
XxMessengerApplication
.
isUserDiscoveryRunning
=
true
development
(
BuildConfig
.
DEBUG
||
BuildConfig
.
ENVIRONMENT
==
Environment
.
TEST_NET
)
when
{
BuildConfig
.
ENVIRONMENT
==
Environment
.
TEST_NET
->
testNet
()
BuildConfig
.
DEBUG
->
development
()
else
->
normal
()
}
private
fun
UserDiscoveryWrapperBindings
.
development
(
enabled
:
Boolean
)
{
if
(
enabled
)
{
}
private
fun
UserDiscoveryWrapperBindings
.
development
()
{
setAlternativeUD
(
if
(
BuildConfig
.
ENVIRONMENT
==
Environment
.
TEST_NET
)
{
testNetUserDiscoveryIp
}
else
{
devUserDiscoveryIp
}
,
devUserDiscoveryIp
,
rawBytes
(
R
.
raw
.
ud_elixxir_io
),
rawBytes
(
R
.
raw
.
ud_contact_test
)
)
}
else
{
restoreNormalUD
()
}
private
fun
UserDiscoveryWrapperBindings
.
testNet
()
{
setAlternativeUD
(
testNetUserDiscoveryIp
,
rawBytes
(
R
.
raw
.
ud_testnet
),
rawBytes
(
R
.
raw
.
ud_testnet_contact
)
)
}
private
fun
UserDiscoveryWrapperBindings
.
normal
()
{
restoreNormalUD
()
}
private
fun
rawBytes
(
resourceId
:
Int
):
ByteArray
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment