Code Monkey home page Code Monkey logo

custom-attach's Introduction

Custom Attach

Gluon Attach is the component that addresses the integration with low-level platform APIs in an end-to-end Java Mobile solution.

Attach provides an uniform, platform-independent API to access device and hardware features. At runtime, the appropriate implementation (attach:desktop, attach:android, attach:ios) makes sure the platform specific code is used to deliver the functionality.

Attach is open source, and it is freely licensed under the GPL license. Gluon can provide custom consultancy and training, commercial licenses, and open source commercial support, including daily and monthly releases.

Important Note

This is an experimental repository intended to test custom Attach services that can be created and used outside Attach itself.

As a custom service, it can't use the official com.gluonhq.attach package name.

Building Custom Attach

Requisites

These are the requisites:

  • A recent version of JDK 11
  • Gradle 6.0 or superior.

To build the iOS services:

  • A Mac with with MacOS X 10.14.4 or superior
  • Xcode 11.x or superior

To build the Android services:

  • Android SDK and Android NDK (The GluonFX plugin installs both when building for Android)

How to build and install Attach

To build the Custom Attach services on the project's root, run:

./gradlew clean build

If you want to install them, run:

./gradlew clean publishToMavenLocal

When the process finishes successfully, the different services can be added to a Gluon Mobile project.

For instance, the Log service for desktop can be added to the project like:

<!-- dependencies -->
<dependency>
    <groupId>my.company.attach</groupId>
    <artifactId>log</artifactId>
    <version>4.0.12-SNAPSHOT</version>
</dependency>
<dependency>
    <groupId>my.company.attach</groupId>
    <artifactId>log</artifactId>
    <version>4.0.12-SNAPSHOT</version>
    <classifier>desktop</classifier>
    <scope>runtime</scope>
</dependency>

and used from the project like:

LogService.create().ifPresent(service -> service.log("This is a message"));

custom-attach's People

Contributors

jperedadnr avatar

Watchers

 avatar  avatar  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.