GitXplorerGitXplorer
p

Defensor

public
2 stars
1 forks
0 issues

Commits

List of commits on branch master.
Verified
58a60e0ee68d7d323c358720e90b6b9f66987650

Update README.md

pporum committed a year ago
Verified
26d6dda0eae33d707d28ec08e74cd7b76816c998

Update README.md

pporum committed a year ago
Unverified
d1fc6e46d21a5b2aca997ebaa26d4c2ae3b1f640

enhancement

pporum committed 2 years ago
Unverified
06c23d5c43789dd102be271df75c1251d45edd0b

not modify bytecode if unboxing operation is wrapped by try-catch block.

pporum committed 2 years ago
Unverified
ccf9db9d900374d8f9842bc5d483c1cf3484c8e9

release v1.3.6

pporum committed 2 years ago
Unverified
e7e9d4d7e5a472a6ea7c6ba8eba2c3d71cec198b

fix StringDefensor

pporum committed 2 years ago

README

The README file for this repository.

Defensor

license defensor defensor-gradle-plugin

Defensor is a gradle plugin for Android that reduces the crash of Application.

Adding dependencies

First, add defensor-gradle-plugin to your project, include the following classpath in your top level build.gradle file:

buildscript {
    repositories {
        // ...
        mavenCentral()
    }
    dependencies {
        // ...
        classpath "io.github.porum:defensor-gradle-plugin:$version"
    }
}

Then, apply the Gradle plugin and add these dependencies in your app or module's build.gradle file:

// ...
apply plugin: "defensor"

dependencies {
    // ...
    implementation "io.github.porum:defensor:$version"
}

Configuration

Defensor plugin can be configured using defensor extension object:

defensor {
    excludes = [
        // exclude specified packages or classes
    ]
}

Usage

CrashDefensor.init(
  CrashDefensor.Config()
    .setApplicationId("applicationId")
    .setEnableThrow(true)
)

CrashDefensor.setCrashCaughtListener { code, msg, th ->
  Log.i("CrashDefensor", "[$code] $msg $th")
}

Decompile

Before After
before after

Wiki

https://github.com/porum/Defensor/wiki

License

Copyright (c) 2021-present, porum

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.