Skip to content

Commit aef35a3

Browse files
committed
renamed library to service_library
1 parent 4dbf4de commit aef35a3

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def compile_dir(dfn, optimize_python=True):
274274
def make_package(args):
275275
# If no launcher is specified, require a main.py/main.pyo:
276276
if (get_bootstrap_name() != "sdl" or args.launcher is None) and \
277-
get_bootstrap_name() not in ["webview", "library"]:
277+
get_bootstrap_name() not in ["webview", "service_library"]:
278278
# (webview doesn't need an entrypoint, apparently)
279279
if args.private is None or (
280280
not exists(join(realpath(args.private), 'main.py')) and
@@ -530,7 +530,7 @@ def make_package(args):
530530
jars=jars,
531531
android_api=android_api,
532532
build_tools_version=build_tools_version,
533-
is_library=get_bootstrap_name() == 'library',
533+
is_library=get_bootstrap_name() == 'service_library',
534534
)
535535

536536
# ant build templates

pythonforandroid/bootstraps/library/__init__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from pythonforandroid.bootstraps.service_only import ServiceOnlyBootstrap
2+
3+
4+
class ServiceLibraryBootstrap(ServiceOnlyBootstrap):
5+
6+
name = 'service_library'
7+
8+
9+
bootstrap = ServiceLibraryBootstrap()

pythonforandroid/bootstraps/library/build/jni/application/src/bootstrap_name.h renamed to pythonforandroid/bootstraps/service_library/build/jni/application/src/bootstrap_name.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#define BOOTSTRAP_NAME_LIBRARY
33
#define BOOTSTRAP_USES_NO_SDL_HEADERS
44

5-
const char bootstrap_name[] = "library";
5+
const char bootstrap_name[] = "service_library";
66

pythonforandroid/recipes/android/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def prebuild_arch(self, arch):
4141
is_webview = bootstrap_name == 'webview'
4242
is_service_only = bootstrap_name == 'service_only'
4343

44-
if is_sdl2 or is_webview or is_service_only or bootstrap_name == 'library':
44+
if is_sdl2 or is_webview or is_service_only or bootstrap_name == 'service_library':
4545
if is_sdl2:
4646
bootstrap = 'sdl2'
4747
java_ns = u'org.kivy.android'

tests/test_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_all_bootstraps(self):
150150
expected_bootstraps = {
151151
"empty",
152152
"service_only",
153-
"library",
153+
"service_library",
154154
"webview",
155155
"sdl2",
156156
}

0 commit comments

Comments
 (0)