Skip to content

Commit

Permalink
upd: remove leveldb and tileview out of project for now
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenDuck committed Jul 5, 2024
1 parent db740c7 commit b4bf840
Show file tree
Hide file tree
Showing 52 changed files with 47 additions and 5,807 deletions.
36 changes: 7 additions & 29 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@ apply plugin: 'com.android.application'
android {
namespace 'io.vn.nguyenduck.blocktopograph'
compileSdk 34

defaultConfig {
applicationId 'io.vn.nguyenduck.blocktopograph'
minSdk 26
//noinspection OldTargetApi
targetSdk 33
targetSdk 34
versionCode 1
versionName "0.0.1-dev.10032024"
vectorDrawables.useSupportLibrary = true
}

dataBinding {
enabled true
}
configurations {
implementation.exclude group: 'org.jetbrains', module: 'annotations'
}

buildTypes {

debug {
Expand Down Expand Up @@ -47,28 +44,9 @@ android {
dependencies {
implementation fileTree(include: ['*.jar', '*.so', '*.aar'], dir: 'libs')
testImplementation 'junit:junit:4.13.2'
implementation project(':leveldb')
implementation project(':tileview')
implementation 'com.github.K1rakishou:Fuck-Storage-Access-Framework:v1.1.3'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.github.bmelnychuk:atv:1.2.9'
implementation 'com.github.woxthebox:draglistview:1.7.2'
implementation 'com.andreabaccega:android-edittext-validator:1.3.5'
implementation 'com.tomergoldst.android:tooltips:1.1.0'
implementation 'androidx.annotation:annotation:1.7.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'com.google.android.material:material:1.11.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'com.github.florent37:expansionpanel:1.2.4'
implementation 'com.github.jbvincey:nestedradiobutton:1.1'
implementation 'net.lingala.zip4j:zip4j:2.11.5'
// do NOT accidentally "up"-grade to the 2003 version
//noinspection GradleDependency
implementation 'commons-io:commons-io:2.11.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'com.google.guava:guava:33.0.0-jre'
implementation 'org.jetbrains:annotations:24.0.0'
implementation 'androidx.annotation:annotation:1.8.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
}

Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
package io.vn.nguyenduck.blocktopograph;

import static io.vn.nguyenduck.blocktopograph.Constants.DOC_AUTHORITY;
import static io.vn.nguyenduck.blocktopograph.Constants.DOC_DATA_PATH;
import static io.vn.nguyenduck.blocktopograph.Constants.MINECRAFT_APP_ID;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.DocumentsContract;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.annotation.RequiresApi;

import androidx.appcompat.app.AppCompatActivity;
import androidx.documentfile.provider.DocumentFile;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import java.util.Objects;
import java.util.StringJoiner;

import static io.vn.nguyenduck.blocktopograph.Constants.*;
import static io.vn.nguyenduck.blocktopograph.Logger.LOGGER;

public class MainActivity extends AppCompatActivity {
private static final int REQ_FOLDER_PERMISSION = 0x00a;
private static final String ACCESS_URI = "access_uri";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
package io.vn.nguyenduck.blocktopograph;

import static java.lang.Math.log10;
import static java.lang.Math.pow;
import static io.vn.nguyenduck.blocktopograph.Constants.WORLD_ICON_PREFIX;
import static io.vn.nguyenduck.blocktopograph.Constants.WORLD_LEVELNAME_FILE;
import static io.vn.nguyenduck.blocktopograph.Constants.WORLD_LEVEL_DATA_FILE;
import static io.vn.nguyenduck.blocktopograph.DocumentUtils.contentResolver;
import static io.vn.nguyenduck.blocktopograph.DocumentUtils.findFiles;

import android.net.Uri;
import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.documentfile.provider.DocumentFile;
import io.vn.nguyenduck.blocktopograph.nbt.NbtInputStream;
import io.vn.nguyenduck.blocktopograph.nbt.Type;
import io.vn.nguyenduck.blocktopograph.nbt.tag.Tag;

import java.io.*;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;

import static io.vn.nguyenduck.blocktopograph.Constants.*;
import static io.vn.nguyenduck.blocktopograph.DocumentUtils.*;
import static io.vn.nguyenduck.blocktopograph.Logger.LOGGER;
import static io.vn.nguyenduck.blocktopograph.nbt.Type.*;
import static java.lang.Math.log10;
import static java.lang.Math.pow;
import io.vn.nguyenduck.blocktopograph.nbt.NbtInputStream;
import io.vn.nguyenduck.blocktopograph.nbt.tag.Tag;

public class WorldLevelData {

Expand Down Expand Up @@ -87,7 +90,6 @@ private void readAllTags() {

NbtInputStream data = new NbtInputStream(dataIS);
Tag t = data.readTag();
// LOGGER.info(t.toString());
dataBundle = NbtUtils.toBundle(t);
} catch (Exception e) {
throw new RuntimeException(e);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.vn.nguyenduck.blocktopograph.nbt.tag;

import static io.vn.nguyenduck.blocktopograph.nbt.Type.INT;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import io.vn.nguyenduck.blocktopograph.nbt.Type;

import static io.vn.nguyenduck.blocktopograph.nbt.Type.INT;
import io.vn.nguyenduck.blocktopograph.nbt.Type;

public class IntTag implements Tag {
private final String name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
package io.vn.nguyenduck.blocktopograph.nbt.tag;

import static io.vn.nguyenduck.blocktopograph.nbt.Type.LIST;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import io.vn.nguyenduck.blocktopograph.nbt.Type;
import org.checkerframework.checker.units.qual.A;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringJoiner;
import java.util.stream.Stream;

import static io.vn.nguyenduck.blocktopograph.Logger.LOGGER;
import static io.vn.nguyenduck.blocktopograph.nbt.Type.LIST;
import io.vn.nguyenduck.blocktopograph.nbt.Type;

public class ListTag implements Tag {
private final String name;
Expand Down
18 changes: 9 additions & 9 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@
<item name="android:textColor">@color/colorAccent</item>
</style>

<style name="MenuButtonsStyle">
<item name="fab_size">mini</item>
<item name="fab_showAnimation">@anim/jump_from_down</item>
<item name="fab_hideAnimation">@anim/jump_to_down</item>
<item name="fab_shadowColor">#444</item>
<item name="fab_colorNormal">@color/colorAccent</item>
<item name="fab_colorPressed">@color/colorAccentDark</item>
<item name="fab_colorRipple">#fff</item>
</style>
<!-- <style name="MenuButtonsStyle">-->
<!-- <item name="fab_size">mini</item>-->
<!-- <item name="fab_showAnimation">@anim/jump_from_down</item>-->
<!-- <item name="fab_hideAnimation">@anim/jump_to_down</item>-->
<!-- <item name="fab_shadowColor">#444</item>-->
<!-- <item name="fab_colorNormal">@color/colorAccent</item>-->
<!-- <item name="fab_colorPressed">@color/colorAccentDark</item>-->
<!-- <item name="fab_colorRipple">#fff</item>-->
<!-- </style>-->

<style name="WaterMarkTextStyle">
<item name="android:paddingLeft">4dp</item>
Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
// classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1'
classpath 'com.android.tools.build:gradle:8.5.0'
}
}

Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ org.gradle.parallel=true
android.useAndroidX=true
android.enableJetifier=true
org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.unsafe.configuration-cache=true
org.gradle.unsafe.configuration-cache=false
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
37 changes: 0 additions & 37 deletions leveldb/build.gradle

This file was deleted.

22 changes: 0 additions & 22 deletions leveldb/proguard-rules.pro

This file was deleted.

5 changes: 0 additions & 5 deletions leveldb/src/main/AndroidManifest.xml

This file was deleted.

74 changes: 0 additions & 74 deletions leveldb/src/main/cpp/Android.mk

This file was deleted.

6 changes: 0 additions & 6 deletions leveldb/src/main/cpp/Application.mk

This file was deleted.

Loading

0 comments on commit b4bf840

Please sign in to comment.