From 7d8a95672e5c89f66da63f04ca0e363c7d46a963 Mon Sep 17 00:00:00 2001 From: GuilhermeWerner <26710260+GuilhermeWerner@users.noreply.github.com> Date: Sun, 3 Oct 2021 13:54:08 -0300 Subject: [PATCH] Update lib.rs --- Source/lib.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Source/lib.rs b/Source/lib.rs index bb1c17d..6796f33 100644 --- a/Source/lib.rs +++ b/Source/lib.rs @@ -4,23 +4,12 @@ #![allow(non_snake_case)] -#[cfg(not(any( - target_os = "windows", - target_os = "macos", - target_os = "linux", - target_os = "android", -)))] -compile_error!("INVALID_TARGET_PLATFORM"); - use jni::objects::{JClass, JString}; use jni::sys::jstring; use jni::JNIEnv; use std::ffi::{CStr, CString}; #[no_mangle] -// 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 -// native method. pub extern "system" fn Java_com_tribufu_sdk_TribuFu_getVersion( env: JNIEnv, _class: JClass,