Skip to content
Snippets Groups Projects
Commit 65e7c135 authored by John's avatar John
Browse files

Remove network logging

parent 3ec4bc38
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -210,9 +210,7 @@ dependencies {
 
implementation 'com.atlassian.commonmark:commonmark:0.11.0'
 
implementation 'com.readystatesoftware.chuck:library:1.1.0'
normalImplementation 'com.crashlytics.sdk.android:crashlytics:2.9.3'
normalImplementation 'com.crashlytics.sdk.android:crashlytics:2.9.4'
 
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
Loading
Loading
Loading
Loading
@@ -13,7 +13,6 @@ import com.commit451.gitlab.util.FabricUtil
import com.commit451.lift.Lift
import com.jakewharton.threetenabp.AndroidThreeTen
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs
import com.readystatesoftware.chuck.ChuckInterceptor
import com.squareup.leakcanary.LeakCanary
import com.squareup.picasso.Picasso
import io.reactivex.plugins.RxJavaPlugins
Loading
Loading
@@ -92,7 +91,6 @@ class App : Application() {
if (BuildConfig.DEBUG) {
clientBuilder.addInterceptor(HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY))
}
clientBuilder.addInterceptor(ChuckInterceptor(this).showNotification(false))
val client = clientBuilder.build()
initGitLab(account, clientBuilder)
if (BuildConfig.DEBUG) {
Loading
Loading
Loading
Loading
@@ -39,7 +39,6 @@ import com.commit451.gitlab.ssl.X509CertificateException
import com.commit451.gitlab.ssl.X509Util
import com.commit451.gitlab.util.IntentUtil
import com.commit451.teleprinter.Teleprinter
import com.readystatesoftware.chuck.ChuckInterceptor
import okhttp3.Credentials
import okhttp3.HttpUrl
import okhttp3.OkHttpClient
Loading
Loading
@@ -210,7 +209,6 @@ class LoginActivity : BaseActivity() {
if (BuildConfig.DEBUG) {
gitlabClientBuilder.addInterceptor(HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY))
}
gitlabClientBuilder.addInterceptor(ChuckInterceptor(this.applicationContext).showNotification(false))
 
currentGitLab = GitLabFactory.createGitLab(currentAccount, gitlabClientBuilder)
 
Loading
Loading
Loading
Loading
@@ -8,7 +8,6 @@ import android.view.View
import butterknife.ButterKnife
import com.commit451.gitlab.R
import com.commit451.gitlab.data.Prefs
import com.readystatesoftware.chuck.Chuck
import kotlinx.android.synthetic.main.activity_settings.*
 
/**
Loading
Loading
@@ -41,10 +40,6 @@ class SettingsActivity : BaseActivity() {
Prefs.isRequiredDeviceAuth = b
}
rootRequireDeviceAuth.setOnClickListener { switchRequireAuth.toggle() }
rootNetwork.setOnClickListener {
val intent = Chuck.getLaunchIntent(this)
startActivity(intent)
}
}
 
fun bindPrefs() {
Loading
Loading
Loading
Loading
@@ -70,41 +70,6 @@
 
</LinearLayout>
 
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:text="Debug"
android:textColor="?attr/colorAccent" />
<LinearLayout
android:id="@+id/rootNetwork"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="?attr/selectableItemBackground"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin">
<TextView
style="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/setting_see_network_activity" />
<TextView
style="?android:attr/textAppearance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/setting_see_network_activity_description"
android:textColor="@color/white_60" />
</LinearLayout>
 
</LinearLayout>
 
Loading
Loading
Loading
Loading
@@ -8,7 +8,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.19.0'
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment