File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " wry " : patch
3
+ ---
4
+
5
+ Fixed an issue that could cause ` Return type mismatch: expected 'kotlin.String', actual 'kotlin.String?' ` errors.
Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ abstract class WryActivity : AppCompatActivity() {
38
38
try {
39
39
@Suppress(" DEPRECATION" )
40
40
val info = packageManager.getPackageInfo(webViewPackage, 0 )
41
- return info.versionName
41
+ return info.versionName.toString()
42
42
} catch (ex: Exception ) {
43
43
Logger .warn(" Unable to get package info for '$webViewPackage '$ex " )
44
44
}
45
45
46
46
try {
47
47
@Suppress(" DEPRECATION" )
48
48
val info = packageManager.getPackageInfo(" com.android.webview" , 0 )
49
- return info.versionName
49
+ return info.versionName.toString()
50
50
} catch (ex: Exception ) {
51
51
Logger .warn(" Unable to get package info for 'com.android.webview'$ex " )
52
52
}
You can’t perform that action at this time.
0 commit comments