diff --git a/app/build.gradle b/app/build.gradle index 2641587..b3f4444 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,7 +8,7 @@ properties.load(project.rootProject.file('local.properties').newDataInputStream( ext.versionMajor = 0 ext.versionMinor = 4 -ext.versionPatch = 5 +ext.versionPatch = 6 android { compileSdkVersion 29 @@ -24,6 +24,19 @@ android { buildConfigField 'String', 'RATINGS_ENDPOINT', properties['ratings_endpoint'] buildConfigField 'String', 'RATINGS_API_KEY', properties['ratings_api_key'] } + signingConfigs { + release { + def props = new Properties() + def fileInputStream = new FileInputStream(file('../local.properties')) + props.load(fileInputStream) + fileInputStream.close() + + storeFile file('../flutter_key.jks') + storePassword props['RELEASE_STORE_PASSWORD'] + keyAlias props['RELEASE_KEY_ALIAS'] + keyPassword props['RELEASE_KEY_PASSWORD'] + } + } flavorDimensions "default" productFlavors { playstore { @@ -43,6 +56,7 @@ android { release { minifyEnabled true shrinkResources true + signingConfig signingConfigs.release proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } diff --git a/app/src/main/java/com/fenchtose/movieratings/reader/NetflixReader.kt b/app/src/main/java/com/fenchtose/movieratings/reader/NetflixReader.kt index 4403036..0227ff9 100644 --- a/app/src/main/java/com/fenchtose/movieratings/reader/NetflixReader.kt +++ b/app/src/main/java/com/fenchtose/movieratings/reader/NetflixReader.kt @@ -11,11 +11,14 @@ class NetflixReader : AppReader { event: AccessibilityEvent, info: AccessibilityNodeInfo ): List { - return findText(info, "video_details_title").emptyAsNull() ?: findAccessibilityDescription(info, "video_img") + return findText(info, "mini_dp_title").emptyAsNull() ?: + findText(info, "video_details_title").emptyAsNull() ?: + findAccessibilityDescription(info, "video_img") } override fun readYear(info: AccessibilityNodeInfo): List { - return findText(info, "video_details_basic_info_year") + return findText(info, "mini_dp_year").emptyAsNull() ?: + findText(info, "video_details_basic_info_year") } override fun fixYear(text: String): String { diff --git a/app/src/main/java/com/fenchtose/movieratings/util/Constants.kt b/app/src/main/java/com/fenchtose/movieratings/util/Constants.kt index be77c37..348c1bc 100644 --- a/app/src/main/java/com/fenchtose/movieratings/util/Constants.kt +++ b/app/src/main/java/com/fenchtose/movieratings/util/Constants.kt @@ -33,7 +33,7 @@ class Constants { Pair(PACKAGE_PRIMEVIDEO, R.string.settings_primevideo), Pair(PACKAGE_PLAY_MOVIES_TV, R.string.settings_playmovies), Pair(PACKAGE_BBC_IPLAYER, R.string.settings_bbc_iplayer), - Pair(PACKAGE_HOTSTAR, R.string.settings_hotstar), +// Pair(PACKAGE_HOTSTAR, R.string.settings_hotstar), Pair(PACKAGE_JIO_TV, R.string.settings_jio_tv), Pair(PACKAGE_JIO_CINEMA, R.string.settings_jio_cinema), Pair(PACKAGE_REDBOX, R.string.settings_redbox),