mirror of
https://github.com/tribufu/tribufu-java
synced 2026-06-01 09:42:37 +00:00
Update Alnilam and DevKit
This commit is contained in:
parent
2f07cf5c4c
commit
2340c84147
6 changed files with 6 additions and 14 deletions
|
|
@ -14,7 +14,7 @@ crate-type = ["cdylib", "rlib"]
|
||||||
path = "Source/lib.rs"
|
path = "Source/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tribufu = { path = "../DevKit" }
|
#tribufu = { path = "../DevKit" }
|
||||||
jni = "0.19.0"
|
jni = "0.19.0"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ use std::ffi::{CStr, CString};
|
||||||
// This is the class that owns our static method. It's not going to be used,
|
// This is the class that owns our static method. It's not going to be used,
|
||||||
// but still must be present to match the expected signature of a static
|
// but still must be present to match the expected signature of a static
|
||||||
// native method.
|
// native method.
|
||||||
pub extern "system" fn Java_com_tribufu_sdk_TribuFu_Hello(
|
pub extern "system" fn Java_com_tribufu_sdk_TribuFu_getVersion(
|
||||||
env: JNIEnv,
|
env: JNIEnv,
|
||||||
_: JClass,
|
_: JClass,
|
||||||
j_input: JString,
|
j_input: JString,
|
||||||
|
|
|
||||||
4
build.rs
4
build.rs
|
|
@ -1,5 +1,7 @@
|
||||||
// Copyright (c) TribuFu. All Rights Reserved.
|
// Copyright (c) TribuFu. All Rights Reserved.
|
||||||
|
|
||||||
|
use Alnilam_Build::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
Alnilam_Build::Target(None);
|
TargetRules::New(None).Build();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
// Copyright (c) TribuFu. All Rights Reserved.
|
|
||||||
|
|
||||||
package com.tribufu.sdk
|
|
||||||
|
|
||||||
interface IHandler {}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
// Copyright (c) TribuFu. All Rights Reserved.
|
|
||||||
|
|
||||||
package com.tribufu.sdk
|
|
||||||
|
|
||||||
interface ISystem {}
|
|
||||||
|
|
@ -9,5 +9,5 @@ class TribuFu {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** A native method that is implemented by the 'TribuFu' native library. */
|
/** A native method that is implemented by the 'TribuFu' native library. */
|
||||||
external fun Hello(input: String ): String
|
external fun getVersion(): String
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue