Update Alnilam and DevKit

This commit is contained in:
GuilhermeWerner 2021-08-21 09:20:00 -03:00
parent 2f07cf5c4c
commit 2340c84147
6 changed files with 6 additions and 14 deletions

View file

@ -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]

View file

@ -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,

View file

@ -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();
} }

View file

@ -1,5 +0,0 @@
// Copyright (c) TribuFu. All Rights Reserved.
package com.tribufu.sdk
interface IHandler {}

View file

@ -1,5 +0,0 @@
// Copyright (c) TribuFu. All Rights Reserved.
package com.tribufu.sdk
interface ISystem {}

View file

@ -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
} }