Skip to content

Commit

Permalink
Add the 'add-gradle-buildscript-depends' argument
Browse files Browse the repository at this point in the history
  • Loading branch information
CheloVek0116 committed Jun 25, 2022
1 parent 1f7f892 commit f8e10b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pythonforandroid/bootstraps/common/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,10 @@ def parse_args_and_make_package(args=None):
default=[],
action='append',
help='Ddd a repository for gradle')
ap.add_argument('--add-gradle-buildscript-depends', dest='gradle_buildscript_depends',
default=[],
action='append',
help='Add a buildscript dependencies for gradle')
ap.add_argument('--add-packaging-option', dest='packaging_options',
default=[],
action='append',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
{%- for depend in args.gradle_buildscript_depends %}
classpath '{{depend}}'
{%- endfor %}
}
}

Expand Down

0 comments on commit f8e10b6

Please sign in to comment.