Skip to content

Commit

Permalink
bumped to 0.4.6
Browse files Browse the repository at this point in the history
Added support for Netflix bottom sheet
  • Loading branch information
jayrambhia committed Dec 2, 2020
1 parent 57a1db1 commit 1fdd4cb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
16 changes: 15 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand All @@ -43,6 +56,7 @@ android {
release {
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ class NetflixReader : AppReader {
event: AccessibilityEvent,
info: AccessibilityNodeInfo
): List<CharSequence> {
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<CharSequence> {
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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1fdd4cb

Please sign in to comment.