From fdbeefb1bc38e42dc34b51b524daa2d1505983f7 Mon Sep 17 00:00:00 2001 From: woheller69 Date: Wed, 14 Feb 2024 07:14:55 +0100 Subject: [PATCH] V1.7 --- app/build.gradle | 4 ++-- .../lite/examples/soundclassifier/BirdDBHelper.java | 6 +++--- fastlane/metadata/android/en-US/changelogs/17.txt | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/17.txt diff --git a/app/build.gradle b/app/build.gradle index d10431b..4a8fe70 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "org.woheller69.whobird" minSdk 30 targetSdk 33 - versionCode 16 - versionName "1.6" + versionCode 17 + versionName "1.7" } aaptOptions { diff --git a/app/src/main/java/org/tensorflow/lite/examples/soundclassifier/BirdDBHelper.java b/app/src/main/java/org/tensorflow/lite/examples/soundclassifier/BirdDBHelper.java index e09c343..5388caa 100644 --- a/app/src/main/java/org/tensorflow/lite/examples/soundclassifier/BirdDBHelper.java +++ b/app/src/main/java/org/tensorflow/lite/examples/soundclassifier/BirdDBHelper.java @@ -47,7 +47,7 @@ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { this.onCreate(db); } - public void addEntry(String name, float latitude, float longitude, int speciesId, float probability) { + public synchronized void addEntry(String name, float latitude, float longitude, int speciesId, float probability) { // Insert a new row into the table with all columns and their values from parameters. SQLiteDatabase db = getWritableDatabase(); ContentValues cv = new ContentValues(); @@ -61,14 +61,14 @@ public void addEntry(String name, float latitude, float longitude, int speciesId db.insert(TABLE_NAME, null, cv); // Insert the row into the table with all columns and their values from parameters. } - public void clearAllEntries() { + public synchronized void clearAllEntries() { SQLiteDatabase db = getWritableDatabase(); String CLEAR_TABLE = "DELETE FROM "+ TABLE_NAME; db.execSQL(CLEAR_TABLE); // Delete all rows in the table, effectively clearing it out. } - public List exportAllEntriesAsCSV() { + public synchronized List exportAllEntriesAsCSV() { SQLiteDatabase db = getReadableDatabase(); String SELECT_ALL = "SELECT * FROM "+ TABLE_NAME; diff --git a/fastlane/metadata/android/en-US/changelogs/17.txt b/fastlane/metadata/android/en-US/changelogs/17.txt new file mode 100644 index 0000000..ea8a726 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/17.txt @@ -0,0 +1,2 @@ +Per-app language support +CSV-Export \ No newline at end of file