Skip to content

Please document how to compile from source and add the results to a unity project #22

@RubenGarcia

Description

@RubenGarcia
cd native
cargo ndk -t arm64-v8a build
cd ..
dotnet pack YetAnotherHttpHandler.sln --runtime android-arm64 --include-symbols --include-source -o publish

generates

native/target/aarch64-linux-android/debug/libyaha_native.so
publish/YetAnotherHttpHandler.0.1.0.nupkg
publish/YetAnotherHttpHandler.0.1.0.symbols.nupkg

and publish/YetAnotherHttpHandler.0.1.0.nupkg contains Cysharp.Net.Http.YetAnotherHttpHandler.dll
but the installation from https://github.com/Cysharp/YetAnotherHttpHandler.git?path=src/YetAnotherHttpHandler#v0.1.0 provides instead

libCysharp.Net.Http.YetAnotherHttpHandler.Native.so

How is libCysharp.Net.Http.YetAnotherHttpHandler.Native.so created?

The build.yml instruction gives

unzip -o ./publish/YetAnotherHttpHandler.*[0-9].nupkg 'runtimes/*' -d src/YetAnotherHttpHandler/Plugins/Cysharp.Net.Http.YetAnotherHttpHandler.Native/ || true
Archive:  ./publish/YetAnotherHttpHandler.0.1.0.nupkg
caution: filename not matched:  runtimes/*

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions