Skip to content

Commit fe1cb05

Browse files
committed
option for additional gradle repos
1 parent 9ac6ad2 commit fe1cb05

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,10 @@ def parse_args(args=None):
680680
default=[],
681681
action='append',
682682
help='add java target compatibility to gradle.build')
683-
683+
ap.add_argument('--add-gradle-repository', dest='gradle_repositories',
684+
default=[],
685+
action='append',
686+
help='add a repository for gradle')
684687

685688
ap.add_argument('--wakelock', dest='wakelock', action='store_true',
686689
help=('Indicate if the application needs the device '

pythonforandroid/bootstraps/common/build/templates/build.tmpl.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ allprojects {
1313
repositories {
1414
google()
1515
jcenter()
16+
{% for repo in args.gradle_repositories -%}
17+
{{repo}}
18+
{%- endfor %}
1619
flatDir {
1720
dirs 'libs'
1821
}

0 commit comments

Comments
 (0)