Compare commits

..

1 commit

Author SHA1 Message Date
c7281880c2
refactor: profile list 2025-03-11 00:58:46 +08:00
3 changed files with 5 additions and 12 deletions

View file

@ -1,10 +1,10 @@
#include "lpac-convertor.h" #include "lpac-convertor.h"
jobject profile_state_enabled; static jobject profile_state_enabled;
jobject profile_state_disabled; static jobject profile_state_disabled;
jobject profile_class_operational; static jobject profile_class_operational;
jobject profile_class_provisioning; static jobject profile_class_provisioning;
jobject profile_class_testing; static jobject profile_class_testing;
static jobject bind_static_field(JNIEnv *env, jclass clazz, const char *name, const char *sig) { static jobject bind_static_field(JNIEnv *env, jclass clazz, const char *name, const char *sig) {
jfieldID field = (*env)->GetStaticFieldID(env, clazz, name, sig); jfieldID field = (*env)->GetStaticFieldID(env, clazz, name, sig);

View file

@ -3,12 +3,6 @@
#include <jni.h> #include <jni.h>
#include <euicc/es10c.h> #include <euicc/es10c.h>
jobject profile_state_enabled;
jobject profile_state_disabled;
jobject profile_class_operational;
jobject profile_class_provisioning;
jobject profile_class_testing;
#define PROFILE_STATE_CLASS "net/typeblog/lpac_jni/ProfileState" #define PROFILE_STATE_CLASS "net/typeblog/lpac_jni/ProfileState"
#define PROFILE_CLASS_CLASS "net/typeblog/lpac_jni/ProfileClass" #define PROFILE_CLASS_CLASS "net/typeblog/lpac_jni/ProfileClass"

View file

@ -20,7 +20,6 @@ jmethodID string_constructor;
#define LOCAL_PROFILE_INFO_CLASS "net/typeblog/lpac_jni/LocalProfileInfo" #define LOCAL_PROFILE_INFO_CLASS "net/typeblog/lpac_jni/LocalProfileInfo"
jint JNI_OnLoad(JavaVM *vm, void *reserved) { jint JNI_OnLoad(JavaVM *vm, void *reserved) {
jvm = vm; jvm = vm;
LPAC_JNI_SETUP_ENV; LPAC_JNI_SETUP_ENV;