-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(google-maps): provides variables for configuring dependencies #1063
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requested a few changes
also, all the variables should be documented in a new variables section in the readme with their default value (check camera readme as example)
google-maps/android/build.gradle
Outdated
} | ||
|
||
buildscript { | ||
ext.kotlin_version = '1.6.10' | ||
ext.kotlin_version = project.hasProperty("kotlinVersion") ? rootProject.ext.kotlinVersion : '1.7.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ext.kotlin_version = project.hasProperty("kotlinVersion") ? rootProject.ext.kotlinVersion : '1.7.0' | |
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.7.0' |
Android Studio kotlin helper creates a variable named kotlin_version
, so better use that one instead of our own kotlinVersion
google-maps/android/build.gradle
Outdated
@@ -62,11 +68,11 @@ dependencies { | |||
testImplementation "junit:junit:$junitVersion" | |||
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" | |||
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" | |||
implementation "androidx.core:core-ktx:1.6.0" | |||
implementation "androidx.core:core-ktx:$androidxKotlinVersion" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation "androidx.core:core-ktx:$androidxKotlinVersion" | |
implementation "androidx.core:core-ktx:$androidxCoreKTXVersion" |
We already have a variable for core-ktx (used by the CLI if there are cordova plugins that use kotlin), better use the same for consistency
google-maps/android/build.gradle
Outdated
@@ -3,10 +3,16 @@ ext { | |||
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.2' | |||
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3' | |||
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0' | |||
androidxKotlinVersion = project.hasProperty('androidxKotlinVersion') ? rootProject.ext.androidxKotlinVersion : '1.8.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
androidxKotlinVersion = project.hasProperty('androidxKotlinVersion') ? rootProject.ext.androidxKotlinVersion : '1.8.0' | |
androidxCoreKTXVersion = project.hasProperty('androidxCoreKTXVersion') ? rootProject.ext.androidxCoreKTXVersion : '1.8.0' |
We already have a variable for core-ktx (used by the CLI if there are cordova plugins that use kotlin), better use the same for consistency
No description provided.