NativeHelper Prefab

Prefab version of AOSP libnativehelper.

Лицензия

Лицензия

Категории

Категории

Native Инструменты разработки
Группа

Группа

dev.rikka.ndk.thirdparty
Идентификатор

Идентификатор

nativehelper
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

aar
Описание

Описание

NativeHelper Prefab
Prefab version of AOSP libnativehelper.
Ссылка на сайт

Ссылка на сайт

https://github.com/RikkaW/nativehelper-prefab
Система контроля версий

Система контроля версий

https://github.com/RikkaW/nativehelper-prefab

Скачать nativehelper

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/dev.rikka.ndk.thirdparty/nativehelper/ -->
<dependency>
    <groupId>dev.rikka.ndk.thirdparty</groupId>
    <artifactId>nativehelper</artifactId>
    <version>1.0.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/dev.rikka.ndk.thirdparty/nativehelper/
implementation 'dev.rikka.ndk.thirdparty:nativehelper:1.0.1'
// https://jarcasting.com/artifacts/dev.rikka.ndk.thirdparty/nativehelper/
implementation ("dev.rikka.ndk.thirdparty:nativehelper:1.0.1")
'dev.rikka.ndk.thirdparty:nativehelper:aar:1.0.1'
<dependency org="dev.rikka.ndk.thirdparty" name="nativehelper" rev="1.0.1">
  <artifact name="nativehelper" type="aar" />
</dependency>
@Grapes(
@Grab(group='dev.rikka.ndk.thirdparty', module='nativehelper', version='1.0.1')
)
libraryDependencies += "dev.rikka.ndk.thirdparty" % "nativehelper" % "1.0.1"
[dev.rikka.ndk.thirdparty/nativehelper "1.0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

NativeHelper Prefab

Prefab package for headers only utilities from AOSP libnativehelper/header_only_include and bionic/libc/private.

Integration

This is a Prefab library, so you will need to enable it in your project (requires Android Gradle Plugin 4.1+):

gradle.properties:

# Header only package is not supported by the defualt version of prefab
# https://github.com/google/prefab/issues/122
android.prefabVersion=1.1.2
android {
    ...
    buildFeatures {
        ...
        prefab true
    }
}

Add dependency:

repositories {
    mavenCentral()
}

dependencies {
    implementation 'dev.rikka.ndk.thirdparty:nativehelper:1.0.0'
}

Usage

ndk-build

LOCAL_STATIC_LIBRARIES := nativehelper_header_only

# You can remove this block if you are using NDK r21+.
ifneq ($(call ndk-major-at-least,21),true)
    $(call import-add-path,$(NDK_GRADLE_INJECTED_IMPORT_PATH))
endif

$(call import-module,prefab/nativehelper)

CMake

find_package(nativehelper REQUIRED CONFIG)
target_link_libraries(<your lib> nativehelper::nativehelper_header_only)

Версии библиотеки

Версия
1.0.1
1.0.0