fix: padding data type and build instructions for kotlin

This commit is contained in:
Richard Ramos 2022-05-11 18:19:38 -04:00
parent fb0dfbe0b8
commit 898d7204c2
No known key found for this signature in database
GPG Key ID: BD36D48BC9FFC88C
4 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ export ANDROID_HOME=/path/to/android/sdk/
make mobile-android
# 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.

View File

@ -8,5 +8,5 @@ data class DecodedPayload(
val pubkey: String?,
val signature: String?,
@Serializable(with = ByteArrayBase64Serializer::class) val data: ByteArray,
val padding: String?
@Serializable(with = ByteArrayBase64Serializer::class) val padding: ByteArray,
)

View File

@ -33,7 +33,7 @@ namespace Waku
public string? pubkey { get; set; }
public string? signature { get; set; }
public byte[] data { get; set; } = new byte[0];
public string? padding { get; set; }
public byte[] padding { get; set; } = new byte[0];
}
public class Peer