TP-00000 | Master → Development (Release 4.0.8) (#7826)
This commit is contained in:
@@ -13,8 +13,8 @@ kapt {
|
||||
correctErrorTypes true
|
||||
}
|
||||
|
||||
def VERSION_CODE = 344
|
||||
def VERSION_NAME = "4.0.7"
|
||||
def VERSION_CODE = 345
|
||||
def VERSION_NAME = "4.0.8"
|
||||
|
||||
android {
|
||||
namespace 'com.naviapp'
|
||||
|
||||
@@ -24,27 +24,3 @@ add_library( # Sets the name of the library.
|
||||
# Provides a relative path to your source file(s).
|
||||
navi-lib.cpp)
|
||||
|
||||
# Searches for a specified prebuilt library and stores the path as a
|
||||
# variable. Because CMake includes system libraries in the search path by
|
||||
# default, you only need to specify the name of the public NDK library
|
||||
# you want to add. CMake verifies that the library exists before
|
||||
# completing its build.
|
||||
|
||||
find_library( # Sets the name of the path variable.
|
||||
log-lib
|
||||
|
||||
# Specifies the name of the NDK library that
|
||||
# you want CMake to locate.
|
||||
log)
|
||||
|
||||
# Specifies libraries CMake should link to your target library. You
|
||||
# can link multiple libraries, such as libraries you define in this
|
||||
# build script, prebuilt third-party libraries, or system libraries.
|
||||
|
||||
target_link_libraries( # Specifies the target library.
|
||||
navi-lib
|
||||
|
||||
# Links the target library to the log library
|
||||
# included in the NDK.
|
||||
${log-lib})
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
package com.navi.base.security.interceptor
|
||||
|
||||
import android.content.Context
|
||||
import com.google.android.play.core.splitinstall.SplitInstallHelper
|
||||
import com.navi.base.network.util.ApiConstants.API_CODE_ERROR
|
||||
import com.navi.base.security.AlgorithmKeyEnum
|
||||
import com.navi.base.security.AppKeyHelper
|
||||
@@ -21,7 +20,6 @@ import okhttp3.Protocol
|
||||
import okhttp3.Response
|
||||
import okhttp3.ResponseBody
|
||||
import okio.Buffer
|
||||
import java.lang.Error
|
||||
|
||||
/**
|
||||
* Interceptor to add encryption hash to the request.
|
||||
@@ -31,17 +29,7 @@ import java.lang.Error
|
||||
class EncryptionHashInterceptor(private val context: Context) : Interceptor {
|
||||
|
||||
init {
|
||||
val naviNativeLibraryName = "navi-lib"
|
||||
|
||||
try {
|
||||
System.loadLibrary(naviNativeLibraryName)
|
||||
} catch (_: Error) {
|
||||
try {
|
||||
SplitInstallHelper.loadLibrary(context, naviNativeLibraryName)
|
||||
} catch (_: Error) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
System.loadLibrary("navi-lib")
|
||||
}
|
||||
|
||||
override fun intercept(chain: Interceptor.Chain): Response {
|
||||
|
||||
Reference in New Issue
Block a user