Skip to content

Commit

Permalink
Remove LeakCanary
Browse files Browse the repository at this point in the history
  • Loading branch information
kdrag0n committed Aug 19, 2018
1 parent 2327644 commit 967739c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 33 deletions.
3 changes: 0 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ dependencies {
implementation "com.android.support:design:$supportVer"
implementation "com.leinardi.android:speed-dial:1.0.2"

debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.kdrag0n.tipatch">

<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

<application
android:name="com.topjohnwu.superuser.ContainerApp"
android:allowBackup="false"
Expand Down
8 changes: 0 additions & 8 deletions app/src/main/java/com/kdrag0n/tipatch/LicenseActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Toolbar
import android.text.method.LinkMovementMethod
import android.text.util.Linkify
import android.view.View
import android.widget.TextView
import com.kdrag0n.utils.AboutCardRow
import kotlinx.android.synthetic.main.activity_license.*
Expand All @@ -21,13 +20,6 @@ class LicenseActivity : AppCompatActivity() {

oss_libsu.license(License.APACHE, 2018, "John \"topjohnwu\" Wu")
oss_about.license(License.APACHE, 2016, "dvdandroid")

if (BuildConfig.DEBUG) {
oss_leak.license(License.APACHE, 2015, "Square, Inc")
} else {
oss_leak.visibility = View.GONE
}

oss_gzipcpp.license(License.MIT, 2016, "Mera, Inc")
oss_speeddial.license(License.APACHE, 2018, "Roberto Leinardi")
}
Expand Down
12 changes: 0 additions & 12 deletions app/src/main/java/com/kdrag0n/tipatch/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import com.kdrag0n.tipatch.jni.ImageException
import com.kdrag0n.utils.*
import com.leinardi.android.speeddial.SpeedDialActionItem
import com.leinardi.android.speeddial.SpeedDialView
import com.squareup.leakcanary.LeakCanary
import com.topjohnwu.superuser.Shell
import com.topjohnwu.superuser.io.SuFile
import com.topjohnwu.superuser.io.SuProcessFileInputStream
Expand Down Expand Up @@ -60,17 +59,6 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

if (LeakCanary.isInAnalyzerProcess(this)) {
return
}

try {
LeakCanary.install(application)
} catch (e: UnsupportedOperationException) {}
catch (e: Throwable) {
throw e
}

setContentView(R.layout.activity_main)
setSupportActionBar(toolbar_main as Toolbar?)

Expand Down
7 changes: 0 additions & 7 deletions app/src/main/res/layout/activity_license.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@
app:icon="@drawable/ic_book"
app:text="@string/proj_about"/>

<com.kdrag0n.utils.AboutCardRow
android:id="@+id/oss_leak"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_book"
app:text="@string/proj_leak"/>

<com.kdrag0n.utils.AboutCardRow
android:id="@+id/oss_gzipcpp"
android:layout_width="match_parent"
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<!-- Projects -->
<string name="proj_libsu">libsu</string>
<string name="proj_about">AboutCardRow</string>
<string name="proj_leak">LeakCanary</string>
<string name="proj_gzipcpp">gzip_cpp</string>
<string name="proj_speeddial">FAB Speed Dial</string>
</resources>

0 comments on commit 967739c

Please sign in to comment.