-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #634 from stakwork/aa/feature/threading
Threads last reply media implementation
- Loading branch information
Showing
71 changed files
with
2,442 additions
and
811 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
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,4 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'kotlin' | ||
} |
13 changes: 13 additions & 0 deletions
13
...concept-signer-manager/src/main/java/chat/sphinx/concept_signer_manager/SignerCallback.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,13 @@ | ||
package chat.sphinx.concept_signer_manager | ||
|
||
interface SignerCallback { | ||
fun checkNetwork(callback: (Boolean) -> Unit) | ||
fun signingDeviceNetwork(callback: (String) -> Unit) | ||
fun signingDevicePassword(networkName: String, callback: (String) -> Unit) | ||
fun signingDeviceLightningNodeUrl(callback: (String) -> Unit) | ||
fun signingDeviceCheckBitcoinNetwork(network: (String) -> Unit, linkSigningDevice: (Boolean) -> Unit) | ||
fun failedToSetupSigningDevice(message: String) | ||
fun showMnemonicToUser(message: String, callback: (Boolean) -> Unit) | ||
fun sendingSeedToHardware() | ||
fun signingDeviceSuccessfullySet() | ||
} |
9 changes: 9 additions & 0 deletions
9
.../concept-signer-manager/src/main/java/chat/sphinx/concept_signer_manager/SignerManager.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,9 @@ | ||
package chat.sphinx.concept_signer_manager | ||
|
||
abstract class SignerManager { | ||
abstract fun setupPhoneSigner() | ||
abstract fun setupSignerHardware(signerCallback: SignerCallback) | ||
abstract fun setWalletDataHandler(walletDataHandlerInstance: Any) | ||
abstract fun setMoshi(moshiInstance: Any) | ||
abstract fun setNetworkQueryCrypter(networkQueryCrypterInstance: Any) | ||
} |
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 @@ | ||
/build |
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,63 @@ | ||
plugins { | ||
id 'app.cash.exhaustive' | ||
id 'com.android.library' | ||
id 'kotlin-android' | ||
id 'kotlinx-serialization' | ||
} | ||
|
||
android { | ||
compileSdkVersion versions.compileSdk | ||
buildToolsVersion versions.buildTools | ||
|
||
defaultConfig { | ||
minSdkVersion versions.minSdk | ||
targetSdkVersion versions.compileSdk | ||
versionCode VERSION_CODE.toInteger() | ||
versionName VERSION_NAME | ||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
testInstrumentationRunnerArguments disableAnalytics: 'true' | ||
consumerProguardFiles "consumer-rules.pro" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: "libs", include: ["*.jar"]) | ||
api project(path: ':kotlin:concepts:concept-coroutines') | ||
|
||
implementation project(path: ':kotlin:encoders:base64') | ||
|
||
// Sphinx | ||
api project(path: ':sphinx:activity:concepts:concept-signer-manager') | ||
|
||
implementation project(path: ':sphinx:screens-detail:common:detail-resources') | ||
implementation project(path: ':sphinx:application:common:resources') | ||
implementation project(path: ':sphinx:application:data:concepts:repositories:concept-repository-lightning') | ||
implementation project(path: ':sphinx:application:data:concepts:concept-wallet') | ||
implementation project(path: ':sphinx:application:common:wrappers:wrapper-message-media') | ||
|
||
implementation project(path: ':sphinx:application:data:concepts:concept-background-login') | ||
implementation project(path: ':sphinx:application:data:concepts:repositories:concept-repository-media') | ||
implementation project(path: ':sphinx:application:data:concepts:repositories:concept-repository-contact') | ||
implementation project(path: ':sphinx:application:network:concepts:queries:concept-network-query-crypter') | ||
implementation project(path: ':sphinx:application:data:concepts:concept-relay') | ||
|
||
implementation deps.jncryptor | ||
|
||
implementation deps.androidx.lifecycle.hilt | ||
implementation deps.bip39.sdk | ||
implementation deps.jna.sdk | ||
implementation deps.paho.sdk | ||
implementation deps.kotlinx.serialization | ||
implementation deps.msgpack.sdk | ||
implementation deps.square.moshi | ||
|
||
|
||
testImplementation project(path: ':kotlin:test:test-concept-coroutines') | ||
} |
Empty file.
21 changes: 21 additions & 0 deletions
21
sphinx/activity/features/signer-manager/proguard-rules.pro
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,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
2 changes: 2 additions & 0 deletions
2
sphinx/activity/features/signer-manager/src/main/AndroidManifest.xml
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,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest package="chat.sphinx.signer_manager"/> |
Oops, something went wrong.