relateddigital_flutter 0.0.6 copy "relateddigital_flutter: ^0.0.6" to clipboard
relateddigital_flutter: ^0.0.6 copied to clipboard

outdated

Related Digital Flutter SDK

pub package

Table of Contents #

Introduction #

This library is the official Flutter SDK of Related Digital.

Requirements #

  • iOS 10.0 or later
  • Android API level 21 or later

Installation #

  • Edit your project's pubspec.yaml file:
dependencies:
    relateddigital_flutter: ^0.1.0
  • Run flutter pub get

  • Import the package:

import 'package:relateddigital_flutter/relateddigital_flutter.dart';

Android #

  • Add the following lines to the repositories section in project/build.gradle
maven {url 'http://developer.huawei.com/repo/'} // skip if your app does not support HMS
  • Add the following lines to the dependencies section in project/build.gradle
classpath 'com.google.gms:google-services:4.3.5'
classpath 'com.huawei.agconnect:agcp:1.4.1.300' // skip if your app does not support HMS
  • Add the following lines to the end of app/build.gradle
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.huawei.agconnect' // skip if your app does not support HMS
  • Add the following services to your AndroidManifest.xml, within the <application></application> tags.
<service
   android:name="euromsg.com.euromobileandroid.service.EuroFirebaseMessagingService"
   android:exported="false">
   <intent-filter>
       <action android:name="com.google.firebase.MESSAGING_EVENT" />
   </intent-filter>
</service>

<!-- skip if your app does not support HMS  -->
<service
   android:name="euromsg.com.euromobileandroid.service.EuroHuaweiMessagingService"
   android:exported="false">
   <intent-filter>
       <action android:name="com.huawei.push.action.MESSAGING_EVENT" />
   </intent-filter>
</service>
  • Add google-services.json file to your application’s app directory.

  • If your app supports HMS add agconnect-services.json file to your application’s app directory.

iOS #

//TODO: google-services.json eklenecek

//TODO: app/build.gradle defaultConfig altına multiDexEnabled true gerekiyormuş?

//TODO: project/build.gradle lintOptions android { { disable 'InvalidPackage' } } gerekli mi?

ANDROID #

android app klasörüne google-services.json eklenecek huawei kısmını da test et

AndroidManifest.xml'e EuroFirebaseMessagingService ve EuroHuaweiMessagingService eklenecek

   <service
       android:name="euromsg.com.euromobileandroid.service.EuroHuaweiMessagingService"
       android:exported="false">
       <intent-filter>
           <action android:name="com.huawei.push.action.MESSAGING_EVENT" />
       </intent-filter>
   </service>

proje build gradle'ının en üst kısmı

buildscript { repositories { google() jcenter() maven {url 'http://developer.huawei.com/repo/'} }

dependencies {
    classpath 'com.android.tools.build:gradle:4.1.3'
    classpath 'com.google.gms:google-services:4.3.5'
    classpath 'com.huawei.agconnect:agcp:1.4.1.300'
}

}

allprojects { repositories { google() jcenter() maven {url 'http://developer.huawei.com/repo/'} } }

app build gradle'ına

apply plugin: 'com.google.gms.google-services' apply plugin: 'com.huawei.agconnect'

eklenmesi gerekiyor.

minSdkVersion'ı 21 yapmak gerekiyor.

Geofence için de bir şeyler eklenmesi gerekiyor.

IOS #

Runner.xcworkspace aç bütün targets için ios deployment target'ı 9.0'dan 10.0'a çıkar bütün targets'lar için deployment info'yu 9.0'dan 10.0'a çıkar Pods TARGETS Flutter Build Settings iOS Deployment Target'ları 8.0'dan 10.0'a çıkar

bütüb target'larda team olarak visilabs admin'i seç

example podfile # platform :ios, 9 u '10.0' a çektim. 2. satırdaki comment'i kaldır example podfile son kısmı değiştirdim.

podfile ve podspec'leri düzelt.