Browse Source

Kotlin: Add cannot_reach_eth_network and cannot_decode_pdl_message status codes

trial
Francisco Cunha 2 months ago
parent
commit
6563291c80
Signed by: Francisco GPG Key ID: 6C4E6D412A9AD698
4 changed files with 4 additions and 83 deletions
  1. +0
    -40
      build-gradle/build.gradle
  2. +0
    -42
      build-gradle/lib/build.gradle
  3. +1
    -0
      src/Transport.kt
  4. +3
    -1
      src/pdl.tsc

+ 0
- 40
build-gradle/build.gradle View File

@ -1,40 +0,0 @@
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'java-library'
}
group 'pEp.security'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
sourceSets {
main.kotlin.srcDirs = ['../src']
}
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation fileTree(dir: '../../libs', include: ['*.jar'])
}
task cleanSrc() {
description = "make clean"
exec{
def command = ['make', 'clean']
workingDir "../src"
commandLine command
}
}
task makeSrc(dependsOn: 'cleanSrc') {
description = "make src"
exec{
def command = ['make', 'all']
workingDir "../src"
commandLine command
}
}
tasks.getByName('assemble').dependsOn(makeSrc)

+ 0
- 42
build-gradle/lib/build.gradle View File

@ -1,42 +0,0 @@
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.5.0'
id 'java-library'
}
repositories {
mavenCentral()
}
sourceSets {
main.kotlin.srcDirs = ['../../src']
}
dependencies {
implementation platform('org.jetbrains.kotlin:kotlin-bom')
implementation fileTree(dir: '../../../libs', include: ['*.jar'])
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt"
}
task cleanSrc() {
description = "make clean"
exec{
def command = ['make', 'clean']
workingDir "../../src"
commandLine command
}
}
task makeSrc(dependsOn: 'cleanSrc') {
description = "make src"
exec{
def command = ['make', 'all']
workingDir "../../src"
commandLine command
}
}
tasks.getByName('assemble').dependsOn(makeSrc)

+ 1
- 0
src/Transport.kt View File

@ -2,6 +2,7 @@ package foundation.pEp
import foundation.pEp.jniadapter.Message
import foundation.pEp.jniadapter.Rating
import kotlinx.coroutines.flow.Flow
/**
* # pEp distributed transport Kotlin interface


+ 3
- 1
src/pdl.tsc View File

@ -1,3 +1,5 @@
doc > transport status codes for PDL (0x03)
hex unknown_eth_error 0x03ffffff;
hex cannot_reach_eth_network 0x03800001;
hex cannot_decode_pdl_message 0x03800002;
hex unknown_eth_error 0x03ffffff;

Loading…
Cancel
Save