Skip to content

Commit

Permalink
chore(release): pulling release/1.25.1 into master (#481)
Browse files Browse the repository at this point in the history
* fix: handle db crash issue on Amazon devices (#480)

* fix: handle SQLiteCantOpenDatabaseException

* chore: improve error message

* chore(release): 1.25.1

---------

Co-authored-by: Abhishek Pandey <[email protected]>
Co-authored-by: GitHub actions <[email protected]>
  • Loading branch information
3 people authored Oct 14, 2024
1 parent 4c5317c commit d217056
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.25.1](https://github.com/rudderlabs/rudder-sdk-android/compare/v1.25.0...v1.25.1) (2024-10-14)


### Bug Fixes

* handle db crash issue on Amazon devices ([#480](https://github.com/rudderlabs/rudder-sdk-android/issues/480)) ([db717d3](https://github.com/rudderlabs/rudder-sdk-android/commit/db717d35ff4aaf475d81c0472202f083e8c7c1bb))

## [1.25.0](https://github.com/rudderlabs/rudder-sdk-android/compare/v1.24.0...v1.25.0) (2024-08-27)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.content.ContentValues;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteCantOpenDatabaseException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.os.Build;
Expand Down Expand Up @@ -258,7 +259,12 @@ public void addDbCloseListener(DbCloseListener listener) {

@Override
public boolean isAccessible() {
return getWritableDatabase().isOpen();
try {
return getWritableDatabase().isOpen();
} catch (SQLiteCantOpenDatabaseException ex) {
RudderLogger.logError("DefaultPersistence: isAccessible: Exception while checking the accessibility of the database due to " + ex);
return false;
}
}
static class DbParams {
final String dbName;
Expand All @@ -271,4 +277,4 @@ public DbParams(String dbName, int dbVersion) {

}
}
//END-NO-SONAR-SCAN
//END-NO-SONAR-SCAN
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ android.enableJetifier=true
android.enableR8.fullMode=true
kotlin.code.style=official
GROUP=com.rudderstack.android.sdk
VERSION_CODE=32
VERSION_NAME=1.25.0
VERSION_CODE=33
VERSION_NAME=1.25.1
POM_NAME=Rudderstack SDK for android
POM_DESCRIPTION=Rudderstack SDK for android
POM_ARTIFACT_ID=core
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.25.0",
"version": "1.25.1",
"dependencies": {
"properties-reader": "^2.2.0"
}
Expand Down

0 comments on commit d217056

Please sign in to comment.