Skip to content

Commit 137411f

Browse files
RobertFlattRobertFlatt
authored andcommitted
Add support for Kotlin packages
1 parent 378b025 commit 137411f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ android {
7676
}
7777

7878
compileOptions {
79+
{% if args.enable_androidx %}
80+
sourceCompatibility JavaVersion.VERSION_1_8
81+
targetCompatibility JavaVersion.VERSION_1_8
82+
{% else %}
7983
sourceCompatibility JavaVersion.VERSION_1_7
8084
targetCompatibility JavaVersion.VERSION_1_7
85+
{% endif %}
8186
{%- for option in args.compile_options %}
8287
{{option}}
8388
{%- endfor %}

0 commit comments

Comments
 (0)