Я хочу использовать Segment (с Firebase) в моем приложении NativeScript.Поэтому я должен следовать этим инструкциям: https://segment.com/docs/destinations/firebase, но я должен изменить два файла: build.gradle уровня модуля:
buildscript {
dependencies {
// Add these lines
compile 'com.segment.analytics.android:analytics:4.+'
compile 'com.segment.analytics.android.integrations:firebase:+'
}
}
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
и build.gradle уровня проекта:
buildscript {
dependencies {
// Add this line
classpath 'com.google.gms:google-services:3.1.0'
}
}
allprojects {
repositories {
// Add this line
maven { url 'https://maven.google.com' }
}
}
Но с NativeScript у меня есть только один build.gradle.Итак, как я могу реализовать эти строки в Gradle?
Спасибо!