GithubHelp home page GithubHelp logo

biclighter81 / pleasurepal-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 52.11 MB

License: Apache License 2.0

Kotlin 0.09% Swift 0.87% Objective-C 0.03% Dart 40.05% CMake 10.14% C++ 11.49% C 4.87% Rust 29.89% HTML 0.96% Just 0.28% Ruby 1.32%

pleasurepal-app's Introduction

pleasurepal

This repository serves as a template for Flutter projects calling into native Rust libraries via flutter_rust_bridge.

Getting Started

To begin, ensure that you have a working installation of the following items:

echo "ANDROID_NDK=.." >> ~/.gradle/gradle.properties

Then go ahead and run flutter run (for web, run dart run flutter_rust_bridge:serve instead). When you're ready, refer to our documentation here to learn how to write and use binding code.

Once you have edited api.rs to incorporate your own Rust code, the bridge files bridge_definitions.dart and bridge_generated.dart are generated using the following command (note: append --wasm to add web support):

Windows

flutter_rust_bridge_codegen --rust-input native\src\api.rs --dart-output .\lib\bridge_generated.dart --dart-decl-output .\lib\bridge_definitions.dart

Linux/MacOS/any other Unix

flutter_rust_bridge_codegen --rust-input native/src/api.rs --dart-output ./lib/bridge_generated.dart --dart-decl-output ./lib/bridge_definitions.dart

Scaffolding in existing projects

If you would like to generate boilerplate for using flutter_rust_bridge in your existing projects, check out the flutter_rust_bridge brick for more details.

Disclaimer

This template is not affiliated with flutter_rust_bridge. Please file issues and PRs related to the template here, not flutter_rust_bridge.

License

Copyright 2022 Viet Dinh.

This template is licensed under either of

at your option.

The SPDX license identifier for this project is MIT OR Apache-2.0.

Json Serialize Codegen

flutter pub run build_runner build --delete-conflicting-outputs AR=llvm-ar RANLIB=llvm-ranlib cargo build --target aarch64-linux-android AR=llvm-ar RANLIB=llvm-ranlib cargo build --target armv7-linux-androideabi AR=llvm-ar RANLIB=llvm-ranlib cargo build --target i686-linux-android

/Users/moritzbecker/Library/Android/sdk/ndk/25.2.9519653/build/tools/make_standalone_toolchain.py --api 26 --arch arm64 --install-dir toolchains/arm64

/Users/moritzbecker/Library/Android/sdk/ndk/25.2.9519653/build/tools/make_standalone_toolchain.py --api 26 --arch arm --install-dir toolchains/arm

/Users/moritzbecker/Library/Android/sdk/ndk/25.2.9519653/build/tools/make_standalone_toolchain.py --api 26 --arch x86 --install-dir toolchains/x86

alle obigen toolchains müssen zum path hinzugefügt werden, da llvm sie sonst im build prozess nicht findet

pleasurepal-app's People

Contributors

biclighter81 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.