فهرست منبع

feature:logger模块开发,修改部分类名

#Suyghur 4 سال پیش
والد
کامیت
773b620fd6

+ 1 - 1
library_logger/build.gradle

@@ -10,7 +10,7 @@ android {
     defaultConfig {
         minSdkVersion MIN_SDK_VERSION
         targetSdkVersion TARGET_SDK_VERSION
-        ndkVersion "21.1.6352462" // <<==== Here
+        ndkVersion "21.1.6352462"
 
         externalNativeBuild {
             cmake {

+ 1 - 1
library_logger/src/main/cpp/logger.cpp

@@ -133,7 +133,7 @@ extern "C" JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) {
     if (vm->GetEnv((void **) &env, JNI_VERSION_1_6) != JNI_OK) {
         return JNI_ERR;
     }
-    jclass clz = env->FindClass("com/suyghur/dolin/logger/record/RecordImpl");
+    jclass clz = env->FindClass("com/suyghur/dolin/logger/impl/Record2MMap");
     if (env->RegisterNatives(clz, gMethods, sizeof(gMethods) / sizeof(gMethods[0])) < 0) {
         return JNI_ERR;
     }

+ 0 - 3
library_logger/src/main/java/com/suyghur/dolin/logger/impl/LoggerImpl.kt

@@ -21,9 +21,6 @@ class LoggerImpl : ILogger {
 
     }
 
-    override fun v(tag: String, msg: String, vararg args: Any) {
-        TODO("Not yet implemented")
-    }
 
     override fun d(tag: String, msg: String, vararg args: Any) {
         TODO("Not yet implemented")

+ 2 - 2
library_logger/src/main/java/com/suyghur/dolin/logger/impl/RecordImpl.kt → library_logger/src/main/java/com/suyghur/dolin/logger/impl/Record2MMap.kt

@@ -6,13 +6,13 @@ import com.suyghur.dolin.logger.internal.IRecord
  * @author #Suyghur.
  * Created on 4/7/21
  */
-class RecordImpl(bufferPath: String, capacity: Int, logPath: String, compress: Boolean) : IRecord {
+class Record2MMap(bufferPath: String, capacity: Int, logPath: String, compress: Boolean) : IRecord {
 
     //句柄
     private var ptr = 0L
 
     init {
-        System.loadLibrary("logkit")
+        System.loadLibrary("logger")
         try {
             ptr = initNative(bufferPath, capacity, logPath, compress)
         } catch (e: Exception) {

+ 0 - 2
library_logger/src/main/java/com/suyghur/dolin/logger/internal/ILogger.kt

@@ -6,8 +6,6 @@ package com.suyghur.dolin.logger.internal
  */
 interface ILogger {
 
-    fun v(tag: String, msg: String, vararg args: Any)
-
     fun d(tag: String, msg: String, vararg args: Any)
 
     fun d(tag: String, any: Any)