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