Skip to content

Commit 94c3bba

Browse files
committed
android: Gradle/AGP 9 can't derive BuildConfig from package name. hardcode.
1 parent 23c1373 commit 94c3bba

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

electrum/util.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
from .simple_config import SimpleConfig
7878

7979

80+
ANDROID_BUILD_CONFIG_CLASS = 'org.electrum.electrum.res.BuildConfig'
81+
8082
_logger = get_logger(__name__)
8183

8284

@@ -619,8 +621,7 @@ def is_android_debug_apk() -> bool:
619621
if not is_android:
620622
return False
621623
from jnius import autoclass
622-
pkgname = get_android_package_name()
623-
build_config = autoclass(f"{pkgname}.BuildConfig")
624+
build_config = autoclass(ANDROID_BUILD_CONFIG_CLASS)
624625
return bool(build_config.DEBUG)
625626

626627

0 commit comments

Comments
 (0)