Skip to content

Commit

Permalink
feat/Add flags for Telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
FrantisekGazo authored and František Gažo committed Jul 20, 2021
1 parent 6ec7229 commit 6aa0357
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

<uses-permission android:name="android.permission.INTERNET"/>

<meta-data android:name="ExponeaFlutterSDK" android:value="true" />

<application>
<receiver
android:name=".ExponeaPushReceiver"
Expand Down
5 changes: 5 additions & 0 deletions ios/Classes/SwiftExponeaPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ private let defaultFlushPeriod = 5 * 60 // 5 minutes

private let errorCode = "ExponeaPlugin"

// This protocol is queried using reflection by native iOS SDK to see if it's run by Flutter SDK
@objc(IsExponeaFlutterSDK)
protocol IsExponeaFlutterSDK {
}

public class SwiftExponeaPlugin: NSObject, FlutterPlugin {

public static func register(with registrar: FlutterPluginRegistrar) {
Expand Down

0 comments on commit 6aa0357

Please sign in to comment.