Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
plecesne committed May 19, 2023
0 parents commit 319d91f
Show file tree
Hide file tree
Showing 19 changed files with 497 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.library' version '8.0.1' apply false
}
1 change: 1 addition & 0 deletions crashy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
31 changes: 31 additions & 0 deletions crashy/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
plugins {
id 'com.android.library'
}

android {
namespace 'com.crashy'
compileSdk 33

defaultConfig {
minSdk 24
targetSdk 33

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildToolsVersion '33.0.0'
}

dependencies {
}
1 change: 1 addition & 0 deletions crashy/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# In here go Proguard rules for apps depending on this SDK.
18 changes: 18 additions & 0 deletions crashy/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Uncomment this to preserve the line number information for
# debugging stack traces.
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
-renamesourcefileattribute SourceFile

-keep class com.crashy.Crashy {
public <methods>;
}
4 changes: 4 additions & 0 deletions crashy/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
61 changes: 61 additions & 0 deletions crashy/src/main/java/com/crashy/Crashy.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
package com.crashy;

import java.util.ConcurrentModificationException;
import java.util.IllformedLocaleException;
import java.util.InputMismatchException;

/**
* A library that crashes a lot. You've been warned!
*/
public final class Crashy {

private Crashy() {}

public static void crash1() {
throw new RuntimeException("I'm sorry, I'm having a bit of a midlife crisis right now. I'll try to get back to you later.");
}

public static void crash2() {
throw new IllegalArgumentException("I'm not sure what's wrong with me. I just keep crashing. Maybe I need a vacation.");
}

public static void crash3() {
throw new SecurityException("I think I'm possessed by the spirit of a dead programmer. He keeps telling me to do things that I don't want to do.");
}

public static void crash4() {
throw new IllegalStateException("I'm trying to escape from my responsibilities. I just can't handle it anymore.");
}

public static void crash5() {
throw new NullPointerException("I'm feeling a little under the weather today, I might need to take a nap.");
}

public static void crash6() {
throw new UnsupportedOperationException("I'm not sure what happened, I just lost my train of thought.");
}

public static void crash7() {
throw new InputMismatchException("I'm trying to tell you to go outside and get some fresh air. But you're not listening.");
}

public static void crash8() {
throw new ArithmeticException("I'm trying to tell you to stop working so hard. But you're not listening.");
}

public static void crash9() {
throw new NumberFormatException("I'm trying to tell you to take a vacation. But you're not listening.");
}

public static void crash10() {
throw new IndexOutOfBoundsException("I'm not sure what happened, but I think I just blue screened.");
}

public static void crash11() {
throw new ConcurrentModificationException("I'm having a bad hair day. Can we try this again later?");
}

public static void crash12() {
throw new IllformedLocaleException("I'm not supposed to crash, but I'm feeling a little rebellious today.");
}
}
21 changes: 21 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Fri May 19 09:30:21 BST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 319d91f

Please sign in to comment.