TP-00000 | Master → Development (Release 4.0.8) (#7826)

This commit is contained in:
Shivam Goyal
2023-09-08 18:30:23 +05:30
committed by GitHub
parent c09cecf2e0
commit 6f4a3d6e22
3 changed files with 3 additions and 39 deletions

View File

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

View File

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

View File

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