Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
6030b00e
Commit
6030b00e
authored
Jun 03, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove excessive logging
parent
a17908f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
App.kt
app/src/main/java/com/topjohnwu/magisk/core/App.kt
+0
-1
NetworkingModule.kt
...src/main/java/com/topjohnwu/magisk/di/NetworkingModule.kt
+4
-8
No files found.
app/src/main/java/com/topjohnwu/magisk/core/App.kt
View file @
6030b00e
...
@@ -31,7 +31,6 @@ open class App() : Application() {
...
@@ -31,7 +31,6 @@ open class App() : Application() {
init
{
init
{
AppCompatDelegate
.
setCompatVectorFromResourcesEnabled
(
true
)
AppCompatDelegate
.
setCompatVectorFromResourcesEnabled
(
true
)
Shell
.
Config
.
setFlags
(
Shell
.
FLAG_MOUNT_MASTER
)
Shell
.
Config
.
setFlags
(
Shell
.
FLAG_MOUNT_MASTER
)
Shell
.
Config
.
verboseLogging
(
BuildConfig
.
DEBUG
)
Shell
.
Config
.
addInitializers
(
RootInit
::
class
.
java
)
Shell
.
Config
.
addInitializers
(
RootInit
::
class
.
java
)
Shell
.
Config
.
setTimeout
(
2
)
Shell
.
Config
.
setTimeout
(
2
)
FileProvider
.
callHandler
=
SuCallbackHandler
FileProvider
.
callHandler
=
SuCallbackHandler
...
...
app/src/main/java/com/topjohnwu/magisk/di/NetworkingModule.kt
View file @
6030b00e
...
@@ -2,7 +2,6 @@ package com.topjohnwu.magisk.di
...
@@ -2,7 +2,6 @@ package com.topjohnwu.magisk.di
import
android.content.Context
import
android.content.Context
import
com.squareup.moshi.Moshi
import
com.squareup.moshi.Moshi
import
com.topjohnwu.magisk.BuildConfig
import
com.topjohnwu.magisk.core.Const
import
com.topjohnwu.magisk.core.Const
import
com.topjohnwu.magisk.data.network.GithubApiServices
import
com.topjohnwu.magisk.data.network.GithubApiServices
import
com.topjohnwu.magisk.data.network.GithubRawServices
import
com.topjohnwu.magisk.data.network.GithubRawServices
...
@@ -16,7 +15,6 @@ import okhttp3.Dns
...
@@ -16,7 +15,6 @@ import okhttp3.Dns
import
okhttp3.HttpUrl
import
okhttp3.HttpUrl
import
okhttp3.OkHttpClient
import
okhttp3.OkHttpClient
import
okhttp3.dnsoverhttps.DnsOverHttps
import
okhttp3.dnsoverhttps.DnsOverHttps
import
okhttp3.logging.HttpLoggingInterceptor
import
org.koin.dsl.module
import
org.koin.dsl.module
import
retrofit2.Retrofit
import
retrofit2.Retrofit
import
retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import
retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
...
@@ -36,12 +34,10 @@ val networkingModule = module {
...
@@ -36,12 +34,10 @@ val networkingModule = module {
fun
createOkHttpClient
(
context
:
Context
):
OkHttpClient
{
fun
createOkHttpClient
(
context
:
Context
):
OkHttpClient
{
val
builder
=
OkHttpClient
.
Builder
()
val
builder
=
OkHttpClient
.
Builder
()
if
(
BuildConfig
.
DEBUG
)
{
// val httpLoggingInterceptor = HttpLoggingInterceptor().apply {
val
httpLoggingInterceptor
=
HttpLoggingInterceptor
().
apply
{
// level = HttpLoggingInterceptor.Level.HEADERS
level
=
HttpLoggingInterceptor
.
Level
.
HEADERS
// }
}
// builder.addInterceptor(httpLoggingInterceptor)
builder
.
addInterceptor
(
httpLoggingInterceptor
)
}
if
(!
Networking
.
init
(
context
))
{
if
(!
Networking
.
init
(
context
))
{
builder
.
sslSocketFactory
(
NoSSLv3SocketFactory
())
builder
.
sslSocketFactory
(
NoSSLv3SocketFactory
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment