mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-15 00:04:36 +00:00
fix: padding data type and build instructions for kotlin
This commit is contained in:
parent
fb0dfbe0b8
commit
898d7204c2
@ -20,7 +20,7 @@ export ANDROID_HOME=/path/to/android/sdk/
|
|||||||
make mobile-android
|
make mobile-android
|
||||||
|
|
||||||
# Copy the jar into `libs/` folder
|
# Copy the jar into `libs/` folder
|
||||||
cp ./build/lib/gowaku.jar ./examples/android-kotlin/app/libs/.
|
cp ./build/lib/gowaku.aar ./examples/android-kotlin/app/libs/.
|
||||||
```
|
```
|
||||||
|
|
||||||
Open the project in Android Studio and run the example app.
|
Open the project in Android Studio and run the example app.
|
||||||
|
0
examples/android-kotlin/app/libs/.gitkeep
Normal file
0
examples/android-kotlin/app/libs/.gitkeep
Normal file
@ -8,5 +8,5 @@ data class DecodedPayload(
|
|||||||
val pubkey: String?,
|
val pubkey: String?,
|
||||||
val signature: String?,
|
val signature: String?,
|
||||||
@Serializable(with = ByteArrayBase64Serializer::class) val data: ByteArray,
|
@Serializable(with = ByteArrayBase64Serializer::class) val data: ByteArray,
|
||||||
val padding: String?
|
@Serializable(with = ByteArrayBase64Serializer::class) val padding: ByteArray,
|
||||||
)
|
)
|
||||||
|
@ -33,7 +33,7 @@ namespace Waku
|
|||||||
public string? pubkey { get; set; }
|
public string? pubkey { get; set; }
|
||||||
public string? signature { get; set; }
|
public string? signature { get; set; }
|
||||||
public byte[] data { get; set; } = new byte[0];
|
public byte[] data { get; set; } = new byte[0];
|
||||||
public string? padding { get; set; }
|
public byte[] padding { get; set; } = new byte[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Peer
|
public class Peer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user