From e794c44dd6cdc1888be8057b3948acf777ebe408 Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Sun, 25 Sep 2022 05:08:15 -0700 Subject: [PATCH] new release --- app/build.gradle | 4 ++-- .../java/asgardius/page/s3manager/MainActivity.java | 2 -- .../java/asgardius/page/s3manager/MyDbHelper.java | 4 ++-- .../ic_launcher_foreground.xml | 0 .../res/{drawable-v24 => drawable}/textfile.png | Bin 5 files changed, 4 insertions(+), 6 deletions(-) rename app/src/main/res/{drawable-v24 => drawable}/ic_launcher_foreground.xml (100%) rename app/src/main/res/{drawable-v24 => drawable}/textfile.png (100%) diff --git a/app/build.gradle b/app/build.gradle index d74bdb8..590c914 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "asgardius.page.s3manager" minSdk 24 targetSdk 33 - versionCode 17 - versionName "0.1.15" + versionCode 18 + versionName "0.1.16" setProperty("archivesBaseName", "s3-manager-$versionName") testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/asgardius/page/s3manager/MainActivity.java b/app/src/main/java/asgardius/page/s3manager/MainActivity.java index 88b4664..8170d46 100644 --- a/app/src/main/java/asgardius/page/s3manager/MainActivity.java +++ b/app/src/main/java/asgardius/page/s3manager/MainActivity.java @@ -111,7 +111,6 @@ public class MainActivity extends AppCompatActivity { } } catch (Exception e) { e.printStackTrace(); - db.execSQL("ALTER TABLE account add column pdfendpoint text"); } } @@ -149,7 +148,6 @@ public class MainActivity extends AppCompatActivity { //Toast.makeText(MainActivity.this, "This feature is not yet implemented", Toast.LENGTH_SHORT).show(); } catch (Exception e) { e.printStackTrace(); - db.execSQL("ALTER TABLE account add column pdfendpoint text"); } } else if (menuItem.getTitle() == getResources().getString(R.string.accountdel_button)) { diff --git a/app/src/main/java/asgardius/page/s3manager/MyDbHelper.java b/app/src/main/java/asgardius/page/s3manager/MyDbHelper.java index 0674507..c215b7a 100644 --- a/app/src/main/java/asgardius/page/s3manager/MyDbHelper.java +++ b/app/src/main/java/asgardius/page/s3manager/MyDbHelper.java @@ -6,7 +6,7 @@ import android.database.sqlite.SQLiteOpenHelper; public class MyDbHelper extends SQLiteOpenHelper { private static final String atcreate = "CREATE TABLE IF NOT EXISTS account(id text UNIQUE, endpoint text, username text, password text, region text, pdfendpoint text)"; - private static final String atupgrade = "ALTER TABLE account add column pdfendpoint text"; + //private static final String upgrade = "ALTER TABLE account add column pdfendpoint text"; private static final int DATABASE_VERSION = 1; private static final String dbname = "accounts.sqlite3"; private static final int dbversion = 3; @@ -19,6 +19,6 @@ public class MyDbHelper extends SQLiteOpenHelper { } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { - db.execSQL(atupgrade); + //db.execSQL(upgrade); } } diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml similarity index 100% rename from app/src/main/res/drawable-v24/ic_launcher_foreground.xml rename to app/src/main/res/drawable/ic_launcher_foreground.xml diff --git a/app/src/main/res/drawable-v24/textfile.png b/app/src/main/res/drawable/textfile.png similarity index 100% rename from app/src/main/res/drawable-v24/textfile.png rename to app/src/main/res/drawable/textfile.png