Skip to content

Commit 97e830a

Browse files
esabookEgit
authored andcommitted
add Licence, doc
Signed-off-by: Egit <egit.saputra@bareksa.com>
1 parent 3a3b20b commit 97e830a

File tree

6 files changed

+65
-4
lines changed

6 files changed

+65
-4
lines changed

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org>

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
![](/doc/silentcrash_demo.gif)
2+
3+
Download sample app: [released here](https://github.com/esabook/SilentCrash/releases)
4+
5+
### Usage:
6+
7+
Root/build.gradle or Root/settings.gradle
8+
9+
```groovy
10+
repositories {
11+
// my latest development snapshot
12+
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots" }
13+
}
14+
15+
```
16+
17+
Root/yourApp/build.gradle
18+
```groovy
19+
dependencies {
20+
// my latest development snapshot
21+
implementation 'io.github.esabook:silentcrash:1.0.0-SNAPSHOT'
22+
}
23+
24+
```
25+
26+
Init once at Application class or Activity class with
27+
28+
```kotlin
29+
SilentCrash
30+
.init(application)
31+
.autoReloadAppON(true)
32+
33+
// optional
34+
// add custom listener to deliver custom action
35+
SilentCrash.getWatcher()?.setOnCrashListener(customAction)
36+
```

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3+
ext.kotlin_version = '1.6.10'
34
repositories {
45
google()
56
mavenCentral()
67
}
78
dependencies {
89
classpath "com.android.tools.build:gradle:7.0.3"
9-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1011

1112
// NOTE: Do not place your application dependencies here; they belong
1213
// in the individual module build.gradle files

doc/silentcrash_demo.gif

864 KB
Loading

settings.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ dependencyResolutionManagement {
33
repositories {
44
google()
55
mavenCentral()
6-
jcenter() // Warning: this repository is going to shut down soon
76
}
87
}
9-
rootProject.name = "sample"
8+
rootProject.name = "SilentCrash"
109
include ':app'
1110
include ':silentcrash'

silentcrash/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ android {
1313
versionName findProperty("build.versionName")
1414

1515
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16+
consumerProguardFiles "consumer-rules.pro"
1617
}
1718

1819
buildTypes {
1920
release {
20-
minifyEnabled true
21+
minifyEnabled false
2122
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2223
}
2324
}

0 commit comments

Comments
 (0)