Skip to content
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

Merged
merged 7 commits into from
Jun 30, 2022

Conversation

theproducer
Copy link
Contributor

No description provided.

@IT-MikeS IT-MikeS changed the base branch from capacitor-4 to main June 27, 2022 18:33
Copy link
Member

@jcesarmobile jcesarmobile left a 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)

}

buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = project.hasProperty("kotlinVersion") ? rootProject.ext.kotlinVersion : '1.7.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

@@ -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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

@@ -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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

@theproducer theproducer requested a review from jcesarmobile June 30, 2022 13:33
@theproducer theproducer merged commit 5c077f1 into main Jun 30, 2022
@theproducer theproducer deleted the google-maps/dep-versioning branch June 30, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants