Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
UML Class Editor
----------------

This app allows you to design an app using UML when you are away from a desktop. Features:
This app allows you to design an app using UML when you are away from a desktop.
### Features:

* Main UML notations for Java classes
* lass/attribute/method editor
Expand All @@ -10,6 +11,16 @@ This app allows you to design an app using UML when you are away from a desktop.
* Custom types
* Standard functionalities such as export, import, merge

## UI
| | | | |
|---------|---------|---------|---------|
| <img src="https://github.com/Jerson2000/UmlClassEditor/assets/78902475/bbc76372-af89-4668-8300-abdef147a20f" width=200> |<img src="https://github.com/Jerson2000/UmlClassEditor/assets/78902475/eb7faae2-5aa7-409d-a55f-554c7c9077c7" width=200>| <img src="https://github.com/Jerson2000/UmlClassEditor/assets/78902475/4823befa-f79c-479a-9a3f-e17efac83a2a" width=200> | <img src="https://github.com/Jerson2000/UmlClassEditor/assets/78902475/13801970-796f-49eb-8aae-a2cf6f952e93" width=200> |
| <img src="https://github.com/Jerson2000/UmlClassEditor/assets/78902475/38dc70fc-017e-489f-9d80-919e2190125a" width=200> | <img src="https://github.com/Jerson2000/UmlClassEditor/assets/78902475/84e9e83f-620c-49a8-9e0e-61cc3db36609" width=200>




## Download apk at <a href="https://github.com/jerson2000/UmlClassEditor/releases"> release </a> or on
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
alt="Get it on F-Droid"
height="80">](https://f-droid.org/packages/com.nathaniel.motus.umlclasseditor/)
38 changes: 25 additions & 13 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 29

namespace 'com.nathaniel.motus.umlclasseditor'
compileSdkVersion 33
defaultConfig {
applicationId "com.nathaniel.motus.umlclasseditor"
minSdkVersion 19
targetSdkVersion 29
versionCode 2
versionName "1.1"
minSdkVersion 21
targetSdkVersion 33
versionCode 3
versionName "1.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand All @@ -19,17 +19,29 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures{
viewBinding true
}

allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
}
}
}
}

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'


}
16 changes: 11 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nathaniel.motus.umlclasseditor">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>

<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".controller.MainActivity">
<activity
android:name=".view.CrashActivity"
android:exported="false" />
<activity
android:name=".controller.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
38 changes: 38 additions & 0 deletions app/src/main/java/com/nathaniel/motus/umlclasseditor/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.nathaniel.motus.umlclasseditor;

import android.app.Application;
import android.content.Intent;
import android.util.Log;

import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.ProcessLifecycleOwner;

import com.nathaniel.motus.umlclasseditor.view.CrashActivity;

import java.io.PrintWriter;
import java.io.StringWriter;

public class App extends Application implements LifecycleObserver {
private static final String TAG = "App";
public void onCreate() {
super.onCreate();

ProcessLifecycleOwner.get().getLifecycle().addObserver(this);
Thread.setDefaultUncaughtExceptionHandler(
(thread, e) -> {


Intent intent = new Intent(getApplicationContext(), CrashActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
String stackTrace = sw.toString(); // stack trace as a string
intent.putExtra("ex", stackTrace);
startActivity(intent);
Log.e(TAG, "uncaughtException: ", e);
System.exit(1);
});

}
}
Loading