File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
pythonforandroid/bootstraps/common/build Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ options (this list may not be exhaustive):
92
92
run. See :ref: `arbitrary_scripts_services `.
93
93
- ``--add-source ``: Add a source directory to the app's Java code.
94
94
- ``--no-compile-pyo ``: Do not optimise .py files to .pyo.
95
+ - ``--enable-androidx ``: Enable the AndroidX support library.
95
96
96
97
97
98
webview
Original file line number Diff line number Diff line change @@ -327,6 +327,9 @@ def make_package(args):
327
327
join (res_dir , 'drawable/icon.png' )
328
328
)
329
329
330
+ if args .enable_androidx :
331
+ shutil .copy ('templates/gradle.properties' ,'gradle.properties' )
332
+
330
333
if get_bootstrap_name () != "service_only" :
331
334
lottie_splashscreen = join (res_dir , 'raw/splashscreen.json' )
332
335
if args .presplash_lottie :
@@ -679,6 +682,10 @@ def parse_args_and_make_package(args=None):
679
682
'topics/manifest/'
680
683
'activity-element.html' ))
681
684
685
+ ap .add_argument ('--enable-androidx' , dest = 'enable_androidx' ,
686
+ action = 'store_true' ,
687
+ help = ('Enable the AndroidX support library, '
688
+ 'requires api = 28 or greater' ))
682
689
ap .add_argument ('--android-entrypoint' , dest = 'android_entrypoint' ,
683
690
default = 'org.kivy.android.PythonActivity' ,
684
691
help = 'Defines which java class will be used for startup, usually a subclass of PythonActivity' )
Original file line number Diff line number Diff line change
1
+ android.useAndroidX =true
2
+ android.enableJetifier =true
You can’t perform that action at this time.
0 commit comments