File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
studyplus-android-sdk/src
java/jp/studyplus/android/sdk/internal/auth Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <resources >
3
+ <string name =" app_package_name" translatable =" false" >jp.studyplus.android.app.debug</string >
4
+ </resources >
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ constructor(
45
45
46
46
private fun isInstalledStudyplus (context : Context ): Boolean {
47
47
val packages = context.packageManager.getInstalledApplications(PackageManager .GET_META_DATA )
48
- return packages.any { it.packageName == " jp.studyplus.android.app" }
48
+ val appName = context.getString(R .string.app_package_name)
49
+ return packages.any { it.packageName == appName }
49
50
}
50
51
}
Original file line number Diff line number Diff line change 1
1
<resources >
2
2
<string name =" app_custom_scheme" translatable =" false" >studyplus://auth/external/start</string >
3
+ <string name =" app_package_name" translatable =" false" >jp.studyplus.android.app</string >
3
4
</resources >
You can’t perform that action at this time.
0 commit comments