Skip to content

Latest commit

 

History

History
56 lines (48 loc) · 1.24 KB

File metadata and controls

56 lines (48 loc) · 1.24 KB

Интеграция JivoSDK(Flutter).

Настройка Gradle Scripts.

Настройки Gradle (уровень проекта) (build.gradle):

buildscript {
    ...
    repositories {
        google()
        mavenCentral()
        maven { url 'https://www.jitpack.io' }
    }
    dependencies {
        ...
        classpath 'com.google.gms:google-services:4.4.2'
    }
}

allprojects {
    repositories {
        ...
        google()
        mavenCentral()
        maven { url 'https://www.jitpack.io' }
    }
}

Настройки Gradle (уровень приложения) (app/build.gradle):

plugins {
    ...
    id "dev.flutter.flutter-gradle-plugin"
    id 'com.google.gms.google-services'
}

android {
   ...
   buildFeatures {
       dataBinding = true
   }
   ...
}

dependencies {
    ...
    api platform('com.google.firebase:firebase-bom:33.12.0')
    api 'com.google.firebase:firebase-messaging'
}

Note

Для полноценной работы JivoSDK, необходимо настроить push-уведомления с помощью Firebase Cloud Messaging. Подробная инструкция.