-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/android node networking POC integration (#38)
* Remove protobuf files and i18n resources * Remove mobile package (was first dev app with showing version number) * Add multidex dependency, add protobuf source path * - small adaptations on android native POC whilst understanding it * - convert android native POC code to Kotlin for easier transition * - replace completable future with coroutines job * - protobuf fixes on POC merged from boilingfrog, fully communicates with seednode now (thanks Henrik!) * - integration of last commit into the androidNode * - integrated services from POC with all their dependencies, ready to be used * - initialize services, added typesafe conf where its expecting it * - integration of print default sec key and language, printing on system.out * Added Koin Dependency (#31) * Added Koin Dependency At this stage, have only added in build.gradle.kts file under comman code. * Added sample code on android side * Added di under shared package * Added Koin under ios * Fix - Renaming files * Added Koin to Android Node * Fix - Reformat the code * Fix - fomatting again * - integrated services from POC with all their dependencies, ready to be used * - hardcode presenter dependency till issues with DI Koin and androidNode gets fixed * - remove protobuf lite dep causing trouble with protobuf in bisq2 jars on runtime * - capable of creating profile if non existent and gets persisted * - observe network changes and log, fetch and print btc market price * - private messaging (trading) integration * - public messaging integration * - Implementation for android node memory report integrated with main service + junit setup and test for the new code * - android node ci config to use its own presenter as main * - integration of app state * - add cleanup on presenter destruction * - fix userProfile mode package name --------- Co-authored-by: HenrikJannsen <[email protected]> Co-authored-by: nis-ship-it <[email protected]>
- Loading branch information
1 parent
c53884b
commit 66605d1
Showing
173 changed files
with
2,229 additions
and
42,968 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
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
3 changes: 3 additions & 0 deletions
3
...droidNode/src/androidMain/kotlin/network/bisq/mobile/android/node/di/AndroidNodeModule.kt
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,9 +1,12 @@ | ||
package network.bisq.mobile.android.node.di | ||
|
||
import network.bisq.mobile.android.node.AndroidNodeGreetingFactory | ||
import network.bisq.mobile.android.node.presentation.MainNodePresenter | ||
import network.bisq.mobile.domain.GreetingFactory | ||
import network.bisq.mobile.presentation.MainPresenter | ||
import org.koin.dsl.module | ||
|
||
val androidNodeModule = module { | ||
single<GreetingFactory> { AndroidNodeGreetingFactory() } | ||
single<MainPresenter> { MainNodePresenter(get()) } | ||
} |
32 changes: 32 additions & 0 deletions
32
.../src/androidMain/kotlin/network/bisq/mobile/android/node/domain/model/UserProfileModel.kt
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,32 @@ | ||
package network.bisq.mobile.android.node.domain.model | ||
|
||
import bisq.common.observable.Observable | ||
import bisq.security.pow.ProofOfWork | ||
import lombok.Getter | ||
import lombok.Setter | ||
import java.security.KeyPair | ||
|
||
/** | ||
* TODO do we need to make this shared? If so it involves getting rid of the bisq.* deps, lombok and include java.security in shared.. | ||
* Most probably we don't and this can be just part of androidNode (we'll know when the bisq-apis gets defined) | ||
*/ | ||
@Getter | ||
class UserProfileModel { | ||
@Setter | ||
var keyPair: KeyPair? = null | ||
|
||
@Setter | ||
lateinit var pubKeyHash: ByteArray | ||
|
||
@Setter | ||
var proofOfWork: ProofOfWork? = null | ||
|
||
private val userName = Observable<String>() | ||
val terms = Observable("") | ||
val statement = Observable("") | ||
val nym = Observable<String>() | ||
private val nickName = Observable<String>() | ||
private val profileId = Observable<String>() | ||
|
||
val isBusy = Observable<Boolean>() | ||
} |
Oops, something went wrong.