├── ios ├── Assets │ └── .gitkeep ├── Classes │ ├── RangersApplogFlutterPlugin.h │ └── RangersApplogFlutterPlugin.m ├── .gitignore └── rangers_applog_flutter_plugin.podspec ├── android ├── gradle.properties ├── settings.gradle ├── .gitignore ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── bytedance │ │ └── rangers_applog_flutter_plugin │ │ ├── DataObserverManager.java │ │ └── RangersApplogFlutterPlugin.java ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── build.gradle ├── example ├── ios │ ├── Flutter │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ ├── Flutter.podspec │ │ └── AppFrameworkInfo.plist │ ├── Runner │ │ ├── AppDelegate.h │ │ ├── Assets.xcassets │ │ │ ├── LaunchImage.imageset │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ ├── README.md │ │ │ │ └── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ │ └── Contents.json │ │ ├── main.m │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ │ └── Info.plist │ ├── Runner.xcworkspace │ │ └── contents.xcworkspacedata │ ├── Podfile │ └── Runner.xcodeproj │ │ └── project.pbxproj ├── android │ ├── gradle.properties │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── xml │ │ │ │ │ │ └── network_security_config.xml │ │ │ │ │ ├── values │ │ │ │ │ │ └── styles.xml │ │ │ │ │ └── drawable │ │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── bytedance │ │ │ │ │ │ └── rangers_applog_flutter_plugin_example │ │ │ │ │ │ └── MainActivity.java │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ └── build.gradle ├── .metadata ├── README.md ├── test │ └── widget_test.dart ├── .gitignore ├── pubspec.yaml └── lib │ └── main.dart ├── .metadata ├── test └── rangers_applog_flutter_plugin_test.dart ├── LICENSE ├── lib ├── data_observer_manager.dart └── rangers_applog_flutter_plugin.dart ├── CHANGELOG.md ├── pubspec.yaml ├── .gitignore └── README.md /ios/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'rangers_applog_flutter_plugin' 2 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | android.enableR8=true 5 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/rangers_applog_flutter_plugin/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 6 | -------------------------------------------------------------------------------- /example/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Classes/RangersApplogFlutterPlugin.h: -------------------------------------------------------------------------------- 1 | // 2 | // RangersAppLogFlutterPlugin.h 3 | // RangersAppLogFlutterPlugin 4 | // 5 | // Created by bob on 2019/9/27. 6 | // 7 | 8 | #import 9 | 10 | @interface RangersApplogFlutterPlugin : NSObject 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/xml/network_security_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 2d2a1ffec95cc70a3218872a2cd3f8de4933c42f 8 | channel: stable 9 | 10 | project_type: plugin 11 | -------------------------------------------------------------------------------- /example/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 2d2a1ffec95cc70a3218872a2cd3f8de4933c42f 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/flutter_export_environment.sh -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # rangers_applog_flutter_plugin_example 2 | 3 | Demonstrates how to use the rangers_applog_flutter_plugin plugin. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /test/rangers_applog_flutter_plugin_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/services.dart'; 2 | import 'package:flutter_test/flutter_test.dart'; 3 | import 'package:rangers_applog_flutter_plugin/rangers_applog_flutter_plugin.dart'; 4 | 5 | void main() { 6 | const MethodChannel channel = MethodChannel('rangers_applog_flutter_plugin'); 7 | 8 | setUp(() { 9 | channel.setMockMethodCallHandler((MethodCall methodCall) async { 10 | return '42'; 11 | }); 12 | }); 13 | 14 | tearDown(() { 15 | channel.setMockMethodCallHandler(null); 16 | }); 17 | 18 | test('getPlatformVersion', () async { 19 | // expect(await RangersApplogFlutterPlugin.sdkVersion, '4.0.0'); 20 | }); 21 | } 22 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/bytedance/rangers_applog_flutter_plugin_example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.bytedance.rangers_applog_flutter_plugin_example; 2 | 3 | import android.os.Bundle; 4 | 5 | import io.flutter.embedding.android.FlutterActivity; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | 12 | // InitConfig initConfig = new InitConfig("159486", "local_test"); 13 | // initConfig.setAutoStart(true); 14 | // initConfig.setAbEnable(true); 15 | // initConfig.setLogger((s, throwable) -> android.util.Log.d("AppLog", s, throwable)); 16 | // AppLog.init(this, initConfig); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/rangers_applog_flutter_plugin.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'rangers_applog_flutter_plugin' 3 | s.version = '0.0.3' 4 | s.summary = 'Official Flutter plugin for RangersAppLog.' 5 | s.description = 'Official Flutter plugin for RangersAppLog' 6 | s.homepage = 'https://datarangers.com' 7 | s.license = { :file => '../LICENSE' } 8 | s.author = { 'bytedance' => 'zhuyuanqing@bytedance.com' } 9 | s.source = { :path => '.' } 10 | 11 | s.source_files = 'Classes/**/*' 12 | s.public_header_files = 'Classes/**/*.h' 13 | 14 | s.dependency 'Flutter' 15 | s.dependency 'RangersAppLog/Core', '>= 5.6.3' 16 | s.frameworks = 'Foundation' 17 | s.requires_arc = true 18 | s.platform = :ios, '9.0' 19 | s.static_framework = true 20 | 21 | end 22 | 23 | -------------------------------------------------------------------------------- /example/ios/Flutter/Flutter.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # NOTE: This podspec is NOT to be published. It is only used as a local source! 3 | # This is a generated file; do not edit or check into version control. 4 | # 5 | 6 | Pod::Spec.new do |s| 7 | s.name = 'Flutter' 8 | s.version = '1.0.0' 9 | s.summary = 'High-performance, high-fidelity mobile apps.' 10 | s.homepage = 'https://flutter.io' 11 | s.license = { :type => 'MIT' } 12 | s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' } 13 | s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s } 14 | s.ios.deployment_target = '9.0' 15 | # Framework linking is handled by Flutter tooling, not CocoaPods. 16 | # Add a placeholder to satisfy `s.dependency 'Flutter'` plugin podspecs. 17 | s.vendored_frameworks = 'path/to/nothing' 18 | end 19 | -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:rangers_applog_flutter_plugin_example/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Verify Platform version', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that platform version is retrieved. 19 | expect( 20 | find.byWidgetPredicate( 21 | (Widget widget) => widget is Text && 22 | widget.data!.startsWith('Running on:'), 23 | ), 24 | findsOneWidget, 25 | ); 26 | }); 27 | } 28 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | group 'com.bytedance.rangers_applog_flutter_plugin' 2 | version '1.0' 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | jcenter() 8 | maven{ 9 | url 'https://artifact.bytedance.com/repository/Volcengine/' 10 | } 11 | } 12 | 13 | dependencies { 14 | classpath 'com.android.tools.build:gradle:3.2.1' 15 | } 16 | } 17 | 18 | rootProject.allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | maven{ 23 | url 'https://artifact.bytedance.com/repository/Volcengine/' 24 | } 25 | } 26 | } 27 | 28 | apply plugin: 'com.android.library' 29 | 30 | android { 31 | compileSdkVersion 28 32 | 33 | defaultConfig { 34 | minSdkVersion 16 35 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 36 | } 37 | lintOptions { 38 | disable 'InvalidPackage' 39 | } 40 | } 41 | 42 | dependencies { 43 | compileOnly 'com.bytedance.applog:RangersAppLog-Lite-cn:6.1.3' 44 | } 45 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 ByteDance 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /lib/data_observer_manager.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'dart:async'; 3 | 4 | import 'package:flutter/services.dart'; 5 | 6 | class DataObserverManager { 7 | 8 | DataObserverManager._(); 9 | 10 | static const EventChannel _eventChannel = const EventChannel("com.bytedance.applog/data_observer"); 11 | static late Stream _eventChannelStream; 12 | static late Stream _abTestConfigStream; 13 | static late Stream _abVidsChangeStream; 14 | static bool _init = false; 15 | 16 | static init() { 17 | _ensureInit(); 18 | } 19 | 20 | static dispose() { 21 | 22 | } 23 | 24 | static _ensureInit() { 25 | if (!_init) { 26 | _eventChannelStream = _eventChannel.receiveBroadcastStream(); 27 | _abTestConfigStream = _eventChannelStream.where((event) { 28 | return event == "onABTestSuccess"; 29 | }); 30 | _abVidsChangeStream = _eventChannelStream.where((event) { 31 | return event == "onABTestVidsChanged"; 32 | }); 33 | _init = true; 34 | } 35 | } 36 | 37 | static Stream receiveABTestConfigStream() { 38 | _ensureInit(); 39 | return _abTestConfigStream; 40 | } 41 | 42 | static Stream receiveABVidsChangeStream() { 43 | _ensureInit(); 44 | return _abVidsChangeStream; 45 | } 46 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.3.0 2 | * iOS & Android: add support of the following method(s): 3 | * receiveABTestConfigStream 4 | * receiveABVidsChangeStream 5 | 6 | ## 1.2.2 7 | * iOS: Compatible with "use framwork!" 8 | 9 | ## 1.2.1 10 | * Update doc 11 | 12 | ## 1.2.0 13 | * Migrate to Android V2 embedding 14 | 15 | ## 1.1.0 16 | * Migrate to null safety 17 | 18 | ## 1.0.6 19 | * Update doc 20 | 21 | ## 1.0.5 22 | * iOS & Android: add support of the following method(s): 23 | * removeHeaderInfo 24 | 25 | ## 1.0.4 26 | 27 | * iOS & Android: add support of the following methods: 28 | * initRangersAppLog (please take a look at the interface doc) 29 | * profileSet 30 | * profileSetOnce 31 | * profileUnset 32 | * profileIncrement 33 | * profileAppend 34 | * iOS: add support of the following methods: 35 | * getAllAbTestConfig 36 | 37 | ## 1.0.3 38 | 39 | * Android: 插件改为compileOnly依赖原生RangersAppLog,需要在原生android工程implementation依赖。 40 | * Android: 插件移除初始化接口,需要在原生android工程初始化RangersAppLog。 41 | * iOS:插件本身不依赖 RangersAppLog。需要在ios工程中依赖。 42 | * iOS:插件不提供初始化接口。需要在原生`- [AppDeleate (BOOL)application:(UIApplication *)application 43 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions]`中初始化。 44 | 45 | ## 1.0.2 46 | 47 | * 支持android 48 | 49 | ## 1.0.1 50 | 51 | * 修改iOS SDK依赖版本号 52 | 53 | ## 1.0.0 54 | 55 | **废弃版本号** 56 | 57 | * 增加日志上报接口 58 | * 增加获取基本属性接口 -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | #import 4 | 5 | @implementation AppDelegate 6 | 7 | - (BOOL)application:(UIApplication *)application 8 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 9 | [GeneratedPluginRegistrant registerWithRegistry:self]; 10 | // Override point for customization after application launch. 11 | 12 | /* !注意:如果在此处初始化了,就不要调用插件的initRangersAppLog进行初始化,以免重复初始化出现问题! 13 | * ! Note: Hereby we init SDK using native Objective-C. You might use `initRangersAppLog` to do the same (the native way is better in performance, though). But don't do both. 14 | */ 15 | /* 初始化开始。请参考iOS原生接入文档。 16 | * Init SDK. Please refer to iOS integrate doc on the official website. 17 | */ 18 | // BDAutoTrackConfig *config =[BDAutoTrackConfig configWithAppID:@"your appID"];// 如不清楚请联系专属客户成功经理 19 | // 20 | // config.serviceVendor = BDAutoTrackServiceVendorCN; 21 | // 22 | // config.appName = @"your appName"; // 与您申请APPID时的app_name一致 23 | // config.channel = @"App Store"; // iOS一般默认App Store 24 | // 25 | // config.showDebugLog = NO; // 是否在控制台输出日志,仅调试使用。release版本请设置为 NO 26 | // config.logger = ^(NSString * _Nullable log) { 27 | // NSLog(@"%@",log); 28 | // }; 29 | // config.logNeedEncrypt = YES; // 是否加密日志,默认加密。release版本请设置为 YES 30 | // 31 | // [BDAutoTrack startTrackWithConfig:config]; 32 | // 33 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | rangers_applog_flutter_plugin_example 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(MARKETING_VERSION) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | /build/ 31 | 32 | # Android related 33 | **/android/**/gradle-wrapper.jar 34 | **/android/.gradle 35 | **/android/captures/ 36 | **/android/gradlew 37 | **/android/gradlew.bat 38 | **/android/local.properties 39 | **/android/**/GeneratedPluginRegistrant.java 40 | 41 | # iOS/XCode related 42 | **/ios/**/*.mode1v3 43 | **/ios/**/*.mode2v3 44 | **/ios/**/*.moved-aside 45 | **/ios/**/*.pbxuser 46 | **/ios/**/*.perspectivev3 47 | **/ios/**/*sync/ 48 | **/ios/**/.sconsign.dblite 49 | **/ios/**/.tags* 50 | **/ios/**/.vagrant/ 51 | **/ios/**/DerivedData/ 52 | **/ios/**/Icon? 53 | **/ios/**/Pods/ 54 | **/ios/**/.symlinks/ 55 | **/ios/**/profile 56 | **/ios/**/xcuserdata 57 | **/ios/.generated/ 58 | **/ios/Flutter/App.framework 59 | **/ios/Flutter/Flutter.framework 60 | **/ios/Flutter/Generated.xcconfig 61 | **/ios/Flutter/app.flx 62 | **/ios/Flutter/app.zip 63 | **/ios/Flutter/flutter_assets/ 64 | **/ios/Flutter/flutter_export_environment.sh 65 | **/ios/ServiceDefinitions.json 66 | **/ios/Runner/GeneratedPluginRegistrant.* 67 | 68 | # Exceptions to above rules. 69 | !**/ios/**/default.mode1v3 70 | !**/ios/**/default.mode2v3 71 | !**/ios/**/default.pbxuser 72 | !**/ios/**/default.perspectivev3 73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 74 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | # 1. 注意要引入spec 2 | source 'https://cdn.cocoapods.org' 3 | source 'https://github.com/bytedance/cocoapods_sdk_source_repo.git' 4 | source 'https://github.com/volcengine/volcengine-specs.git' 5 | 6 | platform :ios, '9.0' 7 | 8 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 9 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 10 | 11 | project 'Runner', { 12 | 'Debug' => :debug, 13 | 'Profile' => :release, 14 | 'Release' => :release, 15 | } 16 | 17 | def flutter_root 18 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 19 | unless File.exist?(generated_xcode_build_settings_path) 20 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 21 | end 22 | 23 | File.foreach(generated_xcode_build_settings_path) do |line| 24 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 25 | return matches[1].strip if matches 26 | end 27 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 28 | end 29 | 30 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 31 | 32 | flutter_ios_podfile_setup 33 | 34 | target 'Runner' do 35 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 36 | 37 | # 2. 参考以下的写法,在ios工程的Podfile中依赖RangersAppLog 38 | pod 'RangersAppLog', '~> 5.6.3', :subspecs => ['Core', 'Log', 'Host/CN'] # 中国区上报 39 | # pod 'RangersAppLog', '~> 5.6.3', :subspecs => ['Core', 'Log', 'Host/SG'] # report to SG 40 | end 41 | 42 | post_install do |installer| 43 | installer.pods_project.targets.each do |target| 44 | flutter_additional_ios_build_settings(target) 45 | end 46 | end 47 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: rangers_applog_flutter_plugin_example 2 | description: Demonstrates how to use the rangers_applog_flutter_plugin plugin. 3 | publish_to: 'none' 4 | 5 | environment: 6 | sdk: '>=2.12.0 <3.0.0' 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | 12 | # The following adds the Cupertino Icons font to your application. 13 | # Use with the CupertinoIcons class for iOS style icons. 14 | cupertino_icons: ^1.0.3 15 | rangers_applog_flutter_plugin: 16 | path: ../ 17 | 18 | dev_dependencies: 19 | flutter_test: 20 | sdk: flutter 21 | 22 | # For information on the generic Dart part of this file, see the 23 | # following page: https://dart.dev/tools/pub/pubspec 24 | 25 | # The following section is specific to Flutter. 26 | flutter: 27 | 28 | # The following line ensures that the Material Icons font is 29 | # included with your application, so that you can use the icons in 30 | # the material Icons class. 31 | uses-material-design: true 32 | 33 | # To add assets to your application, add an assets section, like this: 34 | # assets: 35 | # - images/a_dot_burr.jpeg 36 | # - images/a_dot_ham.jpeg 37 | 38 | # An image asset can refer to one or more resolution-specific "variants", see 39 | # https://flutter.dev/assets-and-images/#resolution-aware. 40 | 41 | # For details regarding adding assets from package dependencies, see 42 | # https://flutter.dev/assets-and-images/#from-packages 43 | 44 | # To add custom fonts to your application, add a fonts section here, 45 | # in this "flutter" section. Each entry in this list should have a 46 | # "family" key with the font family name, and a "fonts" key with a 47 | # list giving the asset and other descriptors for the font. For 48 | # example: 49 | # fonts: 50 | # - family: Schyler 51 | # fonts: 52 | # - asset: fonts/Schyler-Regular.ttf 53 | # - asset: fonts/Schyler-Italic.ttf 54 | # style: italic 55 | # - family: Trajan Pro 56 | # fonts: 57 | # - asset: fonts/TrajanPro.ttf 58 | # - asset: fonts/TrajanPro_Bold.ttf 59 | # weight: 700 60 | # 61 | # For details regarding fonts from package dependencies, 62 | # see https://flutter.dev/custom-fonts/#from-packages 63 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: rangers_applog_flutter_plugin 2 | description: flutter plugin for RangersAppLog. 3 | version: 1.3.0 4 | homepage: "https://github.com/bytedance/rangers_applog_flutter_plugin" 5 | 6 | environment: 7 | sdk: '>=2.12.0 <3.0.0' 8 | flutter: ">=1.12.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | 14 | dev_dependencies: 15 | flutter_test: 16 | sdk: flutter 17 | 18 | # For information on the generic Dart part of this file, see the 19 | # following page: https://dart.dev/tools/pub/pubspec 20 | 21 | # The following section is specific to Flutter. 22 | flutter: 23 | # This section identifies this Flutter project as a plugin project. 24 | # The androidPackage and pluginClass identifiers should not ordinarily 25 | # be modified. They are used by the tooling to maintain consistency when 26 | # adding or updating assets for this project. 27 | plugin: 28 | platforms: 29 | android: 30 | package: com.bytedance.rangers_applog_flutter_plugin 31 | pluginClass: RangersApplogFlutterPlugin 32 | ios: 33 | pluginClass: RangersApplogFlutterPlugin 34 | 35 | # To add assets to your plugin package, add an assets section, like this: 36 | # assets: 37 | # - images/a_dot_burr.jpeg 38 | # - images/a_dot_ham.jpeg 39 | # 40 | # For details regarding assets in packages, see 41 | # https://flutter.dev/assets-and-images/#from-packages 42 | # 43 | # An image asset can refer to one or more resolution-specific "variants", see 44 | # https://flutter.dev/assets-and-images/#resolution-aware. 45 | 46 | # To add custom fonts to your plugin package, add a fonts section here, 47 | # in this "flutter" section. Each entry in this list should have a 48 | # "family" key with the font family name, and a "fonts" key with a 49 | # list giving the asset and other descriptors for the font. For 50 | # example: 51 | # fonts: 52 | # - family: Schyler 53 | # fonts: 54 | # - asset: fonts/Schyler-Regular.ttf 55 | # - asset: fonts/Schyler-Italic.ttf 56 | # style: italic 57 | # - family: Trajan Pro 58 | # fonts: 59 | # - asset: fonts/TrajanPro.ttf 60 | # - asset: fonts/TrajanPro_Bold.ttf 61 | # weight: 700 62 | # 63 | # For details regarding fonts in packages, see 64 | # https://flutter.dev/custom-fonts/#from-packages 65 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.bytedance.rangers_applog_flutter_plugin_example" 37 | minSdkVersion 16 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | 43 | manifestPlaceholders = [ 44 | APPLOG_SCHEME: "rangersapplog.byAx6uYt".toLowerCase() 45 | ] 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | testImplementation 'junit:junit:4.12' 63 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 64 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 65 | implementation 'com.android.support:appcompat-v7:28.0.0' 66 | implementation 'com.bytedance.applog:RangersAppLog-Lite-cn:6.1.3' 67 | } 68 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | 14 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # https://github.com/flutter/plugins/blob/master/.gitignore 2 | .DS_Store 3 | .atom/ 4 | .idea/ 5 | .vscode/ 6 | 7 | .packages 8 | .pub/ 9 | .dart_tool/ 10 | pubspec.lock 11 | flutter_export_environment.sh 12 | 13 | examples/all_plugins/pubspec.yaml 14 | 15 | Podfile 16 | Podfile.lock 17 | Pods/ 18 | .symlinks/ 19 | **/Flutter/App.framework/ 20 | **/Flutter/ephemeral/ 21 | **/Flutter/Flutter.framework/ 22 | **/Flutter/Generated.xcconfig 23 | **/Flutter/flutter_assets/ 24 | 25 | ServiceDefinitions.json 26 | xcuserdata/ 27 | **/DerivedData/ 28 | 29 | local.properties 30 | keystore.properties 31 | .gradle/ 32 | gradlew 33 | gradlew.bat 34 | gradle-wrapper.jar 35 | .flutter-plugins-dependencies 36 | *.iml 37 | 38 | generated_plugin_registrant.dart 39 | GeneratedPluginRegistrant.h 40 | GeneratedPluginRegistrant.m 41 | generated_plugin_registrant.cc 42 | GeneratedPluginRegistrant.java 43 | GeneratedPluginRegistrant.swift 44 | build/ 45 | .flutter-plugins 46 | 47 | .project 48 | .classpath 49 | .settings 50 | 51 | 52 | # OS X 53 | .DS_Store 54 | 55 | # Xcode 56 | build/ 57 | DerivedData/ 58 | *.pbxuser 59 | !default.pbxuser 60 | *.mode1v3 61 | !default.mode1v3 62 | *.mode2v3 63 | !default.mode2v3 64 | *.perspectivev3 65 | !default.perspectivev3 66 | xcuserdata/ 67 | 68 | ## Other 69 | *.moved-aside 70 | *.xccheckout 71 | *.xcscmblueprint 72 | 73 | ## Obj-C/Swift specific 74 | *.hmap 75 | *.ipa 76 | *.dSYM.zip 77 | *.dSYM 78 | 79 | # Bundler 80 | .bundle 81 | 82 | #flutter 默认 ignore 83 | .dart_tool/ 84 | 85 | .packages 86 | .pub/ 87 | pubspec.lock 88 | 89 | build/ 90 | 91 | 92 | # CocoaPods 93 | # 94 | # We recommend against adding the Pods directory to your .gitignore. However 95 | # you should judge for yourself, the pros and cons are mentioned at: 96 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 97 | # 98 | Pods/ 99 | *.xcworkspace/contents.xcworkspacedata 100 | Podfile.lock 101 | 102 | *.iml 103 | .gradle 104 | /local.properties 105 | /.idea/workspace.xml 106 | /.idea/libraries 107 | /captures 108 | 109 | .idea/ 110 | .vagrant/ 111 | .sconsign.dblite 112 | .svn/ 113 | 114 | 115 | *.swp 116 | *.pbxuser 117 | *.mode1v3 118 | *.mode2v3 119 | *.perspectivev3 120 | 121 | !default.pbxuser 122 | !default.mode1v3 123 | !default.mode2v3 124 | !default.perspectivev3 125 | 126 | *.moved-aside 127 | *.pyc 128 | *sync/ 129 | Icon? 130 | .tags* 131 | 132 | /Flutter/Generated.xcconfig 133 | /Flutter/flutter_export_environment.sh 134 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # RangersAppLogFlutterPlugin 2 | 3 | *For global version, please check `global` branch.* 4 | 5 | RangersAppLog的[Flutter插件](https://pub.dev/packages/rangers_applog_flutter_plugin)。支持埋点上报。 6 | 7 | Flutter plugin for RangersAppLog. 8 | 9 | 提示:可以到[Rangers官网](https://datarangers.com.cn/)查看更详细的文档 10 | 11 | Note: Refer to more detailed docs at https://datarangers.com/ 12 | 13 | ## 集成 Install plugin 14 | 15 | ### Add dependency in `pubspec.yaml` 16 | ``` 17 | dependencies: 18 | rangers_applog_flutter_plugin: ^1.1.0 19 | ``` 20 | 21 | ### Install plugin 22 | ``` 23 | flutter packages get 24 | ``` 25 | 26 | ### iOS 27 | #### Podfile 28 | Add source commands in `Podfile` 29 | ```ruby 30 | source 'https://cdn.cocoapods.org' 31 | source 'https://github.com/bytedance/cocoapods_sdk_source_repo.git' 32 | source 'https://github.com/volcengine/volcengine-specs.git' 33 | ``` 34 | Add RangersAppLog dependency. 具体可参考Example或[iOS集成文档](https://datarangers.com.cn/datarangers/help/doc?lid=1097&did=8547) 35 | ```ruby 36 | pod 'RangersAppLog', '~> 6.3.2', :subspecs => ['Core', 'Log', 'Host/CN'] # 中国区上报 37 | # pod 'RangersAppLog', '~> 5.6.3', :subspecs => ['Core', 'Log', 'Host/SG'] # report to SG 38 | ``` 39 | 40 | #### 初始化 Init SDK 41 | You can init SDK in native side or dart side. 42 | 43 | 1. Natvie side 44 | 在原生`- [AppDeleate (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions]`中初始化。 45 | 初始化方式请参考Example或[iOS集成文档](https://datarangers.com.cn/datarangers/help/doc?lid=1097&did=8547) 46 | 47 | Take a look at project example project [AppDelegate.m](example/ios/Runner/AppDelegate.m). 48 | 49 | 2. dart side. 50 | ```dart 51 | RangersApplogFlutterPlugin.initRangersAppLog('123456','test_channel', true, true, false, null); 52 | ``` 53 | #### 注册插件 Register plugin 54 | ```objective-c 55 | #import "GeneratedPluginRegistrant.h" 56 | #import 57 | 58 | @implementation GeneratedPluginRegistrant 59 | 60 | + (void)registerWithRegistry:(NSObject*)registry { 61 | [RangersApplogFlutterPlugin registerWithRegistrar:[registry registrarForPlugin:@"RangersApplogFlutterPlugin"]]; 62 | } 63 | 64 | @end 65 | ``` 66 | 67 | ### Android 68 | #### 初始化 Init SDK 69 | You can init SDK in native side or dart side. 70 | 1. Init SDK in native side. 在android原生工程集成依赖并初始化RangersAppLog,请参考[RangersAppLog Android](https://datarangers.com.cn/datarangers/help/doc?lid=1097&did=10942) 71 | 2. Init SDK in dart side. 72 | 73 | ### Flutter 74 | import plugin 75 | ```dart 76 | import 'package: rangers_applog_flutter_plugin/rangers_applog_flutter_plugin.dart'; 77 | ``` 78 | 79 | ### Usage example 80 | ```dart 81 | RangersApplogFlutterPlugin.onEventV3("test_event_name", {"event_param":"param_value"}); 82 | ``` 83 | 84 | 其他更多接口请参考Demo和plugin注释。 85 | For more detailed docs and usage examples, please refer to source code doc and example project in this repo. 86 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /android/src/main/java/com/bytedance/rangers_applog_flutter_plugin/DataObserverManager.java: -------------------------------------------------------------------------------- 1 | package com.bytedance.rangers_applog_flutter_plugin; 2 | 3 | import android.os.Handler; 4 | import android.os.Looper; 5 | 6 | import com.bytedance.applog.AppLog; 7 | import com.bytedance.applog.IDataObserver; 8 | 9 | import org.json.JSONObject; 10 | 11 | import java.util.HashSet; 12 | 13 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 14 | import io.flutter.plugin.common.EventChannel; 15 | 16 | class DataObserverManager { 17 | 18 | private static InnerDataObserver dataObserver; 19 | private static boolean init; 20 | 21 | private DataObserverManager() { 22 | } 23 | 24 | static void init(FlutterPlugin.FlutterPluginBinding binding) { 25 | if (!init) { 26 | dataObserver = new InnerDataObserver(); 27 | AppLog.addDataObserver(dataObserver); 28 | EventChannel eventChannel = new EventChannel(binding.getBinaryMessenger(), 29 | "com.bytedance.applog/data_observer"); 30 | eventChannel.setStreamHandler( 31 | new EventChannel.StreamHandler() { 32 | @Override 33 | public void onListen(Object args, EventChannel.EventSink events) { 34 | dataObserver.setEventSink(events); 35 | } 36 | 37 | @Override 38 | public void onCancel(Object args) { 39 | } 40 | } 41 | ); 42 | init = true; 43 | } 44 | } 45 | 46 | private static class InnerDataObserver implements IDataObserver { 47 | 48 | private EventChannel.EventSink eventSink; 49 | private final Handler handler; 50 | private final HashSet cache; 51 | 52 | public InnerDataObserver() { 53 | this.handler = new Handler(Looper.getMainLooper()); 54 | cache = new HashSet<>(); 55 | } 56 | 57 | private void sendEvent(final Object event) { 58 | handler.post(new Runnable() { 59 | @Override 60 | public void run() { 61 | if (eventSink == null) { 62 | cache.add(event); 63 | } else { 64 | eventSink.success(event); 65 | } 66 | } 67 | }); 68 | } 69 | 70 | public void setEventSink(final EventChannel.EventSink events) { 71 | handler.post(new Runnable() { 72 | @Override 73 | public void run() { 74 | if (events != eventSink) { 75 | eventSink = events; 76 | for (Object event : cache) { 77 | eventSink.success(event); 78 | } 79 | cache.clear(); 80 | } 81 | } 82 | }); 83 | } 84 | 85 | @Override 86 | public void onIdLoaded(String s, String s1, String s2) { 87 | } 88 | 89 | @Override 90 | public void onRemoteIdGet(boolean b, String s, String s1, String s2, String s3, String s4, String s5) { 91 | } 92 | 93 | @Override 94 | public void onRemoteConfigGet(boolean b, JSONObject jsonObject) { 95 | } 96 | 97 | @Override 98 | public void onRemoteAbConfigGet(boolean b, JSONObject jsonObject) { 99 | sendEvent("onABTestSuccess"); 100 | } 101 | 102 | @Override 103 | public void onAbVidsChange(String s, String s1) { 104 | sendEvent("onABTestVidsChanged"); 105 | } 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /lib/rangers_applog_flutter_plugin.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/services.dart'; 4 | 5 | import 'data_observer_manager.dart'; 6 | 7 | class RangersApplogFlutterPlugin { 8 | 9 | static const MethodChannel _channel = 10 | const MethodChannel('rangers_applog_flutter_plugin'); 11 | 12 | /* 提示:可以到[Rangers官网](https://datarangers.com.cn/)查看更详细的文档 13 | * Note: Refer to more detailed docs at https://datarangers.com/ 14 | */ 15 | /// Init SDK,expected to be called as early as possible. 16 | /// Note: You can also choose to init SDK in native side (say, using Java or Objective-C). If so, this method is not expected to be called. 17 | /// @param appid String AppID of Rangers. 18 | /// @param channel String. 19 | /// @host private report URL. e.g. https://myprivateurl.com/ Pass `null` if you dont know what this is. 20 | /// Usage:(replace 123456 with your appid) 21 | /// RangersApplogFlutterPlugin.initRangersAppLog('123456','test_channel', true, true, false, null); 22 | static void initRangersAppLog(String appid, String channel, bool enableAb, 23 | bool enableEncrypt, bool enableLog, String? host) { 24 | assert(appid.isNotEmpty); 25 | assert(channel.isNotEmpty); 26 | _channel.invokeMethod('initRangersAppLog', { 27 | "appid": appid, 28 | "channel": channel, 29 | "enable_ab": enableAb, 30 | "enable_encrypt": enableEncrypt, 31 | "enable_log": enableLog, 32 | "host": host 33 | }); 34 | 35 | DataObserverManager.init(); 36 | } 37 | 38 | /// get device_id 39 | /// @returns device_id 40 | /// Usage: 41 | /// String value = await RangersApplogFlutterPlugin.getDeviceId(); 42 | static Future getDeviceId() async { 43 | return await _channel.invokeMethod('getDeviceId'); 44 | } 45 | 46 | /* AB Test */ 47 | /// get ab_sdk_version 48 | /// @returns ab_sdk_version 49 | /// Usage: 50 | /// String value = await RangersApplogFlutterPlugin.getAbSdkVersion(); 51 | static Future getAbSdkVersion() async { 52 | return await _channel.invokeMethod('getAbSdkVersion'); 53 | } 54 | 55 | /// get all ab config 56 | /// This method will not trigger exposure. 57 | /// Note: Only avaliable on iOS! 58 | /// Usage example: 59 | /// Map d = await RangersApplogFlutterPlugin.getAllAbTestConfig(); 60 | static Future?> getAllAbTestConfig() async { 61 | return await _channel.invokeMethod('getAllAbTestConfig'); 62 | } 63 | 64 | /// get the abConfigValue of the corresponding `key` 65 | /// @param key String 66 | /// @returns corresponding abConfigValue 67 | /// Usage: 68 | /// String value = await RangersApplogFlutterPlugin.getABTestConfigValueForKey('ab_test_key'); 69 | static Future getABTestConfigValueForKey( 70 | String key, dynamic defaultValue) async { 71 | return await _channel.invokeMethod( 72 | 'getABTestConfigValueForKey', {'key': key, 'default': defaultValue}); 73 | } 74 | 75 | /// track events 76 | /// @param eventName String 77 | /// @param params Map event properties 78 | /// Usage: 79 | /// RangersApplogFlutterPlugin.onEventV3('flutter_start',{'key1':'value1','key2':'value2'}); 80 | static void onEventV3(String eventName, Map? params) { 81 | _channel.invokeMethod("onEventV3", {'event': eventName, 'param': params}); 82 | } 83 | 84 | /* Login and Logout */ 85 | /// set user_unique_id 86 | /// @param userUniqueID String Pass the userID you want to log in. Pass `null` to log out. 87 | /// Usage: 88 | /// RangersApplogFlutterPlugin.setUserUniqueId('123'); 89 | static void setUserUniqueId(String? userUniqueID) { 90 | _channel.invokeMethod('setUserUniqueId', {'uuid': userUniqueID}); 91 | } 92 | 93 | /* Custom Header */ 94 | /// custom header info 95 | /// @param params Map header信息. 96 | /// Usage: 97 | /// RangersApplogFlutterPlugin.setHeaderInfo({'key1':'value1','key2':'value2'}); 98 | static void setHeaderInfo(Map customHeader) { 99 | _channel.invokeMethod("setHeaderInfo", {'customHeader': customHeader}); 100 | } 101 | 102 | static void removeHeaderInfo(String key) { 103 | _channel.invokeMethod('removeHeaderInfo', {'key': key}); 104 | } 105 | 106 | /* Profile */ 107 | static void profileSet(Map profileDict) { 108 | _channel.invokeMethod('profileSet', {'profileDict': profileDict}); 109 | } 110 | 111 | static void profileSetOnce(Map profileDict) { 112 | _channel.invokeMethod('profileSetOnce', {'profileDict': profileDict}); 113 | } 114 | 115 | static void profileUnset(String key) { 116 | _channel.invokeMethod('profileUnset', {'key': key}); 117 | } 118 | 119 | static void profileIncrement(Map profileDict) { 120 | _channel.invokeMethod('profileIncrement', {'profileDict': profileDict}); 121 | } 122 | 123 | static void profileAppend(Map profileDict) { 124 | _channel.invokeMethod('profileAppend', {'profileDict': profileDict}); 125 | } 126 | 127 | /// Sets up a broadcast stream for receiving ABTestConfig events. 128 | /// May receive multiple events. 129 | /// You can get the latest ABTestConfig by [getABTestConfigValueForKey]. 130 | static Stream receiveABTestConfigStream() { 131 | return DataObserverManager.receiveABTestConfigStream(); 132 | } 133 | 134 | /// Sets up a broadcast stream for receiving ABVidsChange events. 135 | /// Triggered when ABTest is exposed 136 | static Stream receiveABVidsChangeStream() { 137 | return DataObserverManager.receiveABVidsChangeStream(); 138 | } 139 | } 140 | -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:async'; 3 | 4 | import 'package:rangers_applog_flutter_plugin/rangers_applog_flutter_plugin.dart'; 5 | 6 | void main() => runApp(MyApp()); 7 | 8 | const String RangersAppLogTestAppID = '159486'; 9 | const String RangersAppLogTestChannel = 'local_test'; 10 | 11 | class MyApp extends StatefulWidget { 12 | @override 13 | _MyAppState createState() => _MyAppState(); 14 | } 15 | 16 | class _MyAppState extends State { 17 | String _sdkVersion = 'Unknown'; 18 | String _did = 'Unknown'; 19 | String _listen_text = 'Unknown'; 20 | String _listen_abconfig = 'Unknown'; 21 | String _listen_vidschange = 'Unknown'; 22 | String _device_id = 'Unknown'; 23 | String _ab_sdk_version = 'Unknown'; 24 | dynamic _ab_config_value; 25 | Map? allABConfigs; 26 | 27 | Future _initAppLog() async { 28 | try { 29 | RangersApplogFlutterPlugin.initRangersAppLog("189693", "local_test", true, true, true, null); 30 | // The ABTest may not be up to date here 31 | _getABTestConfigValueForKey(); 32 | RangersApplogFlutterPlugin.receiveABTestConfigStream().listen((event) { 33 | setState(() { 34 | _listen_text = "receiveABTestConfigStream"; 35 | }); 36 | // You can get the latest ABTest here 37 | _getABTestConfigValueForKey(); 38 | }); 39 | RangersApplogFlutterPlugin.receiveABVidsChangeStream().listen((event) { 40 | setState(() { 41 | _listen_text = "receiveABVidsChangeStream"; 42 | }); 43 | }); 44 | } on Exception {} 45 | } 46 | 47 | Future _getDid() async { 48 | String value = 'Unknown'; 49 | try { 50 | value = await RangersApplogFlutterPlugin.getDeviceId() ?? value; 51 | } on Exception {} 52 | setState(() { 53 | _did = value; 54 | }); 55 | } 56 | 57 | Future _getDeviceID() async { 58 | String value = 'Unknown'; 59 | try { 60 | value = await RangersApplogFlutterPlugin.getDeviceId() ?? value; 61 | } on Exception {} 62 | setState(() { 63 | _device_id = value; 64 | }); 65 | } 66 | 67 | Future _getAbSdkVersion() async { 68 | String value = 'Unknown'; 69 | try { 70 | value = await RangersApplogFlutterPlugin.getAbSdkVersion() ?? value; 71 | } on Exception {} 72 | setState(() { 73 | _ab_sdk_version = value; 74 | }); 75 | } 76 | 77 | Future _getAllAbTestConfig() async { 78 | Map? value; 79 | try { 80 | value = await RangersApplogFlutterPlugin.getAllAbTestConfig(); 81 | print(value); 82 | } on Exception {} 83 | setState(() { 84 | allABConfigs = value; 85 | }); 86 | } 87 | 88 | Future _getABTestConfigValueForKey() async { 89 | dynamic value; 90 | try { 91 | final dynamic result = 92 | await RangersApplogFlutterPlugin.getABTestConfigValueForKey( 93 | 'home_style', "ab_default_val"); 94 | value = result; 95 | } on Exception {} 96 | setState(() { 97 | _ab_config_value = value; 98 | }); 99 | } 100 | 101 | static int uuid = 2020; 102 | 103 | @override 104 | Widget build(BuildContext context) { 105 | return MaterialApp( 106 | home: Scaffold( 107 | appBar: AppBar( 108 | title: const Text('Plugin example app'), 109 | ), 110 | body: ListView( 111 | children: [ 112 | ListTile( 113 | title: Text("init AppLog $_listen_text"), 114 | onTap: () { 115 | _initAppLog(); 116 | }), 117 | ListTile( 118 | title: Text("Test get device_id $_device_id"), 119 | onTap: () { 120 | _getDeviceID(); 121 | }), 122 | ListTile( 123 | title: Text("Test get ab_sdk_version $_ab_sdk_version"), 124 | onTap: () { 125 | _getAbSdkVersion(); 126 | }), 127 | ListTile( 128 | title: Text('getAllAbTestConfig $allABConfigs'), 129 | onTap: () { 130 | _getAllAbTestConfig(); 131 | }), 132 | ListTile( 133 | title: Text("Test get abTestConfigValue $_ab_config_value"), 134 | onTap: () { 135 | _getABTestConfigValueForKey(); 136 | }), 137 | ListTile( 138 | title: Text("Listen ABTestConfig $_listen_abconfig"), 139 | onTap: () { 140 | RangersApplogFlutterPlugin.receiveABTestConfigStream().listen((event) { 141 | setState(() { 142 | _listen_abconfig = "update ${DateTime.now()}"; 143 | }); 144 | }); 145 | }), 146 | ListTile( 147 | title: Text("Test onEventV3"), 148 | onTap: () { 149 | RangersApplogFlutterPlugin.onEventV3( 150 | "event_v3_name", {"key1": "value1", "key2": "value2"}); 151 | }), 152 | ListTile( 153 | title: Text("Test setHeaderInfo"), 154 | onTap: () { 155 | RangersApplogFlutterPlugin.setHeaderInfo({ 156 | "header_key1": "header_value1", 157 | "header_key2": "header_value2", 158 | // "header_key3": Null // Invalid argument: Null 159 | }); 160 | }), 161 | ListTile( 162 | title: Text("Test removeHeaderInfo"), 163 | onTap: () { 164 | RangersApplogFlutterPlugin.removeHeaderInfo("header_key1"); 165 | RangersApplogFlutterPlugin.removeHeaderInfo("header_key2"); 166 | }), 167 | ListTile( 168 | title: Text("Test setUserUniqueId"), 169 | onTap: () { 170 | RangersApplogFlutterPlugin.setUserUniqueId(uuid.toString()); 171 | uuid++; 172 | }), 173 | ListTile(title: Text("RangersApplog SDK Version $_sdkVersion")), 174 | ListTile( 175 | title: Text("Test start Track "), 176 | onTap: () { 177 | // RangersApplogFlutterPlugin.startTrack(RangersAppLogTestAppID, "dp_tob_sdk_test2"); 178 | }), 179 | ListTile( 180 | title: Text("Test call did $_did "), 181 | onTap: () { 182 | _getDid(); 183 | }), 184 | // ListTile( 185 | // title: Text("Test call ssid $_ssid "), 186 | // onTap: () { 187 | // _getSSID(); 188 | // }), 189 | // ListTile( 190 | // title: Text("Test call iid $_iid "), 191 | // onTap: () { 192 | // _getIid(); 193 | // }), 194 | // ListTile( 195 | // title: Text("Test call uuid $_uuid "), 196 | // onTap: () { 197 | // _getUUID(); 198 | // }), 199 | ListTile( 200 | title: Text("Test call eventV3 "), 201 | onTap: () { 202 | RangersApplogFlutterPlugin.onEventV3( 203 | "test_event", {"key": "value"}); 204 | }), 205 | // ListTile( 206 | // title: Text("Test call abTestValue $_abValue "), 207 | // onTap: () { 208 | // _getABTestValue(); 209 | // }), 210 | ], 211 | )), 212 | ); 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /android/src/main/java/com/bytedance/rangers_applog_flutter_plugin/RangersApplogFlutterPlugin.java: -------------------------------------------------------------------------------- 1 | package com.bytedance.rangers_applog_flutter_plugin; 2 | 3 | import android.content.Context; 4 | import android.util.Log; 5 | 6 | import androidx.annotation.NonNull; 7 | 8 | import com.bytedance.applog.AppLog; 9 | import com.bytedance.applog.ILogger; 10 | import com.bytedance.applog.InitConfig; 11 | import com.bytedance.applog.UriConfig; 12 | 13 | import org.json.JSONException; 14 | import org.json.JSONObject; 15 | 16 | import java.util.HashMap; 17 | import java.util.Map; 18 | 19 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 20 | import io.flutter.plugin.common.MethodCall; 21 | import io.flutter.plugin.common.MethodChannel; 22 | import io.flutter.plugin.common.MethodChannel.MethodCallHandler; 23 | import io.flutter.plugin.common.MethodChannel.Result; 24 | import io.flutter.plugin.common.PluginRegistry.Registrar; 25 | 26 | /** 27 | * RangersApplogFlutterPlugin 28 | */ 29 | public class RangersApplogFlutterPlugin implements FlutterPlugin { 30 | 31 | 32 | /** 33 | * Plugin registration. 34 | */ 35 | public static void registerWith(Registrar registrar) { 36 | final MethodChannel channel = new MethodChannel(registrar.messenger(), "rangers_applog_flutter_plugin"); 37 | channel.setMethodCallHandler(new AppLogMethodCallHandler(registrar.activity())); 38 | } 39 | 40 | static class AppLogMethodCallHandler implements MethodCallHandler { 41 | 42 | private static final String TAG = "RangersApplogFlutter"; 43 | 44 | private static final String FlutterPluginMethodInitRangersApplog = "initRangersAppLog"; 45 | private static final String FlutterPluginMethodGetDeviceId = "getDeviceId"; 46 | private static final String FlutterPluginMethodGetAbSdkVersion = "getAbSdkVersion"; 47 | private static final String FlutterPluginMethodGetABTestConfigValueForKey = "getABTestConfigValueForKey"; 48 | private static final String FlutterPluginMethodOnEventV3 = "onEventV3"; 49 | private static final String FlutterPluginMethodSetUserUniqueId = "setUserUniqueId"; 50 | private static final String FlutterPluginMethodSetHeaderInfo = "setHeaderInfo"; 51 | private static final String FlutterPluginMethodProfileSet = "profileSet"; 52 | private static final String FlutterPluginMethodProfileSetOnce = "profileSetOnce"; 53 | private static final String FlutterPluginMethodProfileAppend = "profileAppend"; 54 | private static final String FlutterPluginMethodProfileIncrement = "profileIncrement"; 55 | private static final String FlutterPluginMethodProfileUnset = "profileUnSet"; 56 | private static final String FlutterPluginMethodGetAllAbTestConfig = "getAllAbTestConfig"; 57 | private static final String FlutterPluginMethodRemoveHeaderInfo = "removeHeaderInfo"; 58 | 59 | private final Context context; 60 | 61 | private AppLogMethodCallHandler(Context context) { 62 | this.context = context; 63 | } 64 | 65 | @Override 66 | public void onMethodCall(MethodCall call, Result result) { 67 | switch (call.method) { 68 | case FlutterPluginMethodInitRangersApplog: 69 | Log.e(TAG, "appid=" + (String) call.argument("appid") + ", channel=" + (String) call.argument("channel") + 70 | ", enableAb=" + (Boolean) call.argument("enableAb") + 71 | ", enable_encrypt=" + (Boolean) call.argument("enable_encrypt") + 72 | ", enable_log=" + (Boolean) call.argument("enable_log") + 73 | ", host=" + (String) call.argument("host")); 74 | InitConfig initConfig = new InitConfig((String) call.argument("appid"), (String) call.argument("channel")); 75 | initConfig.setAutoStart(true); 76 | initConfig.setAbEnable((Boolean) call.argument("enable_ab")); 77 | AppLog.setEncryptAndCompress((Boolean) call.argument("enable_encrypt")); 78 | if ((Boolean) call.argument("enable_log")) { 79 | initConfig.setLogger(new ILogger() { 80 | @Override 81 | public void log(String s, Throwable throwable) { 82 | Log.d("AppLog------->: ", "" + s); 83 | } 84 | }); 85 | } 86 | if ((String) call.argument("host") != null) { 87 | initConfig.setUriConfig(UriConfig.createByDomain((String) call.argument("host"), null)); 88 | } 89 | AppLog.init(context.getApplicationContext(), initConfig); 90 | break; 91 | case FlutterPluginMethodGetDeviceId: 92 | result.success(AppLog.getDid()); 93 | break; 94 | case FlutterPluginMethodGetAbSdkVersion: 95 | result.success(AppLog.getAbSdkVersion()); 96 | break; 97 | case FlutterPluginMethodGetABTestConfigValueForKey: 98 | result.success(AppLog.getAbConfig((String) call.argument("key"), call.argument("default"))); 99 | break; 100 | case FlutterPluginMethodOnEventV3: 101 | String eventName = (String) call.argument("event"); 102 | AppLog.onEventV3(eventName, getJsonFromMap(call, "param")); 103 | break; 104 | case FlutterPluginMethodSetUserUniqueId: 105 | AppLog.setUserUniqueID((String) call.argument("uuid")); 106 | break; 107 | case FlutterPluginMethodSetHeaderInfo: 108 | AppLog.setHeaderInfo((HashMap) call.argument("customHeader")); 109 | break; 110 | case FlutterPluginMethodProfileSet: 111 | AppLog.profileSet(getJsonFromMap(call, "profileDict")); 112 | break; 113 | case FlutterPluginMethodProfileSetOnce: 114 | AppLog.profileSetOnce(getJsonFromMap(call, "profileDict")); 115 | break; 116 | case FlutterPluginMethodProfileIncrement: 117 | AppLog.profileIncrement(getJsonFromMap(call, "profileDict")); 118 | break; 119 | case FlutterPluginMethodProfileAppend: 120 | AppLog.profileAppend(getJsonFromMap(call, "profileDict")); 121 | break; 122 | case FlutterPluginMethodProfileUnset: 123 | AppLog.profileUnset((String) call.argument("key")); 124 | break; 125 | case FlutterPluginMethodGetAllAbTestConfig: 126 | break; 127 | case FlutterPluginMethodRemoveHeaderInfo: 128 | AppLog.removeHeaderInfo((String) call.argument("key")); 129 | default: 130 | result.notImplemented(); 131 | break; 132 | } 133 | } 134 | 135 | private JSONObject getJsonFromMap(MethodCall call, String param) { 136 | HashMap paramMap = (HashMap) call.argument(param); 137 | JSONObject paramJson = new JSONObject(); 138 | for (Map.Entry entry : paramMap.entrySet()) { 139 | try { 140 | paramJson.put(entry.getKey(), entry.getValue()); 141 | } catch (JSONException e) { 142 | } 143 | } 144 | return paramJson; 145 | } 146 | } 147 | 148 | 149 | @Override 150 | public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) { 151 | final MethodChannel channel = new MethodChannel(binding.getBinaryMessenger(), "rangers_applog_flutter_plugin"); 152 | channel.setMethodCallHandler(new AppLogMethodCallHandler(binding.getApplicationContext())); 153 | 154 | // init EventChannel、DataObserver 155 | DataObserverManager.init(binding); 156 | } 157 | 158 | @Override 159 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 160 | 161 | } 162 | } 163 | -------------------------------------------------------------------------------- /ios/Classes/RangersApplogFlutterPlugin.m: -------------------------------------------------------------------------------- 1 | // 2 | // RangersAppLogFlutterPlugin.m 3 | // RangersAppLogFlutterPlugin 4 | // 5 | // Created by bob on 2019/9/27. 6 | // 7 | 8 | #import "RangersApplogFlutterPlugin.h" 9 | #import 10 | 11 | 12 | static inline id setNSNullToNil(id value, Class target){ 13 | if (value == NSNull.null) { 14 | return nil; 15 | } 16 | if (![value isKindOfClass:target]) { 17 | return nil; 18 | } 19 | return value; 20 | } 21 | 22 | @interface RangersApplogFlutterPlugin () 23 | 24 | @property (nonatomic, strong) FlutterEventSink eventSink; 25 | @property (nonatomic, strong) NSMutableSet *eventCache; 26 | 27 | @end 28 | 29 | 30 | @implementation RangersApplogFlutterPlugin 31 | 32 | // 在应用didFinishLaunching时被调用 33 | + (void)registerWithRegistrar:(NSObject*)registrar { 34 | FlutterMethodChannel* channel = [FlutterMethodChannel methodChannelWithName:@"rangers_applog_flutter_plugin" 35 | binaryMessenger:[registrar messenger]]; 36 | 37 | RangersApplogFlutterPlugin* instance = [RangersApplogFlutterPlugin new]; 38 | [registrar addMethodCallDelegate:instance channel:channel]; 39 | 40 | FlutterEventChannel *eventChannel = [FlutterEventChannel eventChannelWithName:@"com.bytedance.applog/data_observer" binaryMessenger:[registrar messenger]]; 41 | [eventChannel setStreamHandler:instance]; 42 | } 43 | 44 | - (instancetype)init 45 | { 46 | self = [super init]; 47 | if (self) { 48 | [[NSNotificationCenter defaultCenter] addObserver:self 49 | selector:@selector(onABTestSuccess:) 50 | name:BDAutoTrackNotificationABTestSuccess object:nil]; 51 | [[NSNotificationCenter defaultCenter] addObserver:self 52 | selector:@selector(onABTestVidsChanged:) 53 | name:BDAutoTrackNotificationABTestVidsChanged object:nil]; 54 | _eventCache = [NSMutableSet new]; 55 | } 56 | return self; 57 | } 58 | 59 | #pragma mark Method Channel 60 | 61 | - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { 62 | NSString *methodName = call.method; 63 | NSDictionary *arguments = setNSNullToNil(call.arguments, [NSDictionary class]); 64 | 65 | if ([methodName isEqualToString:@"sdkVersion"]) { 66 | result([BDAutoTrack SDKVersion]); 67 | } 68 | else if ([methodName isEqualToString:@"initRangersAppLog"]) { 69 | NSString *appID = setNSNullToNil([arguments valueForKey:@"appid"], [NSString class]); 70 | NSString *channel = setNSNullToNil([arguments valueForKey:@"channel"], [NSString class]); 71 | NSNumber *enableAB = setNSNullToNil([arguments valueForKey:@"enable_ab"], [NSNumber class]); 72 | NSNumber *enableEncrypt = setNSNullToNil([arguments valueForKey:@"enable_encrypt"], [NSNumber class]); 73 | NSNumber *enableDebugLog = setNSNullToNil([arguments valueForKey:@"enable_log"], [NSNumber class]); 74 | NSString *host = setNSNullToNil([arguments valueForKey:@"host"], [NSString class]); 75 | 76 | BDAutoTrackConfig *config = [BDAutoTrackConfig configWithAppID:appID]; 77 | if ([channel isKindOfClass:NSString.class] && channel.length > 0) { 78 | config.channel = channel; 79 | } 80 | config.logNeedEncrypt = [enableEncrypt boolValue]; 81 | config.abEnable = [enableAB boolValue]; 82 | config.showDebugLog = [enableDebugLog boolValue]; 83 | config.serviceVendor = BDAutoTrackServiceVendorCN; 84 | #if DEBUG 85 | config.showDebugLog = YES; 86 | config.logger = ^(NSString * log) { 87 | NSLog(@"flutter-plugin applog %@",log); 88 | }; 89 | #endif 90 | if ([host isKindOfClass:NSString.class] && host.length > 0) { 91 | [BDAutoTrack setRequestHostBlock:^NSString * _Nullable(BDAutoTrackServiceVendor vendor, BDAutoTrackRequestURLType requestURLType) { 92 | return host; 93 | }]; 94 | } 95 | [BDAutoTrack startTrackWithConfig:config]; 96 | result(nil); 97 | } 98 | else if ([methodName isEqualToString:@"onEventV3"]) { 99 | // NSLog(@"%@", call.arguments); 100 | NSString *event = setNSNullToNil([arguments valueForKey:@"event"], [NSString class]); 101 | NSDictionary *param = [arguments valueForKey:@"param"]; 102 | BOOL ret = [[BDAutoTrack sharedTrack] eventV3:event params:param]; 103 | result(nil); 104 | } 105 | else if ([methodName isEqualToString:@"getDeviceId"]) { 106 | result([[BDAutoTrack sharedTrack] rangersDeviceID]); 107 | } 108 | 109 | /* Custom Header */ 110 | else if ([methodName isEqualToString:@"setHeaderInfo"]) { 111 | NSDictionary *customHeader = setNSNullToNil([arguments valueForKey:@"customHeader"], [NSDictionary class]); 112 | for (NSString *key in customHeader) { 113 | if ([key isKindOfClass:NSString.class]) { 114 | NSObject *val = customHeader[key]; 115 | [[BDAutoTrack sharedTrack] setCustomHeaderValue:val forKey:key]; 116 | } 117 | } 118 | } 119 | 120 | else if ([methodName isEqualToString:@"removeHeaderInfo"]) { 121 | NSString *key = setNSNullToNil([arguments valueForKey:@"key"], [NSString class]); 122 | [[BDAutoTrack sharedTrack] removeCustomHeaderValueForKey:key]; 123 | } 124 | 125 | /* Login and Logout */ 126 | else if ([methodName isEqualToString:@"setUserUniqueId"]) { 127 | NSString *userUniqueID = setNSNullToNil([arguments valueForKey:@"uuid"], [NSString class]); 128 | [[BDAutoTrack sharedTrack] setCurrentUserUniqueID:userUniqueID]; 129 | } 130 | 131 | /* AB Test */ 132 | else if ([methodName isEqualToString:@"getAbSdkVersion"]) { 133 | NSString *vids = [[BDAutoTrack sharedTrack] allAbVids]; 134 | result(vids); 135 | } 136 | else if ([methodName isEqualToString:@"getAllAbTestConfig"]) { 137 | NSDictionary *allConfigs = [[BDAutoTrack sharedTrack] allABTestConfigs]; 138 | result(allConfigs); 139 | } 140 | else if ([methodName isEqualToString:@"getABTestConfigValueForKey"]) { 141 | NSString *key = setNSNullToNil([arguments valueForKey:@"key"], [NSString class]); 142 | NSObject *defaultVal = setNSNullToNil([arguments valueForKey:@"default"], [NSObject class]); 143 | id val = [[BDAutoTrack sharedTrack] ABTestConfigValueForKey:key defaultValue:defaultVal]; 144 | result(val); 145 | } 146 | 147 | /* Profile */ 148 | else if ([methodName isEqualToString:@"profileSet"]) { 149 | NSDictionary *profileDict = setNSNullToNil([arguments valueForKey:@"profileDict"], [NSDictionary class]); 150 | [[BDAutoTrack sharedTrack] profileSet:profileDict]; 151 | } 152 | else if ([methodName isEqualToString:@"profileSetOnce"]) { 153 | NSDictionary *profileDict = setNSNullToNil([arguments valueForKey:@"profileDict"], [NSDictionary class]); 154 | [[BDAutoTrack sharedTrack] profileSetOnce:profileDict]; 155 | } 156 | else if ([methodName isEqualToString:@"profileUnset"]) { 157 | NSString *key = setNSNullToNil([arguments valueForKey:@"key"], [NSString class]); 158 | [[BDAutoTrack sharedTrack] profileUnset:key]; 159 | } 160 | else if ([methodName isEqualToString:@"profileIncrement"]) { 161 | NSDictionary *profileDict = setNSNullToNil([arguments valueForKey:@"profileDict"], [NSDictionary class]); 162 | [[BDAutoTrack sharedTrack] profileIncrement:profileDict]; 163 | } 164 | else if ([methodName isEqualToString:@"profileAppend"]) { 165 | NSDictionary *profileDict = setNSNullToNil([arguments valueForKey:@"profileDict"], [NSDictionary class]); 166 | [[BDAutoTrack sharedTrack] profileAppend:profileDict]; 167 | } 168 | else { 169 | result(FlutterMethodNotImplemented); 170 | } 171 | } 172 | 173 | #pragma mark Event Channel 174 | 175 | - (FlutterError* _Nullable)onListenWithArguments:(id _Nullable)arguments 176 | eventSink:(FlutterEventSink)events { 177 | self.eventSink = events; 178 | for (id event in self.eventCache) { 179 | events(event); 180 | } 181 | [self.eventCache removeAllObjects]; 182 | return nil; 183 | } 184 | 185 | - (FlutterError* _Nullable)onCancelWithArguments:(id _Nullable)arguments { 186 | return nil; 187 | } 188 | 189 | - (void)onABTestSuccess:(NSNotification *)noti { 190 | [self sendEvent:@"onABTestSuccess"]; 191 | } 192 | 193 | - (void)onABTestVidsChanged:(NSNotification *)noti { 194 | [self sendEvent:@"onABTestVidsChanged"]; 195 | } 196 | 197 | - (void)sendEvent:(id _Nullable)event { 198 | dispatch_async(dispatch_get_main_queue(), ^{ 199 | if (self.eventSink) { 200 | self.eventSink(event); 201 | } else { 202 | [self.eventCache addObject:event]; 203 | } 204 | }); 205 | } 206 | 207 | @end 208 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 6DB5BE3579EA236BD8FF1AFC /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9C0205507E05BF2DCEE19F03 /* libPods-Runner.a */; }; 13 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 14 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 15 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 16 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 17 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 18 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXCopyFilesBuildPhase section */ 22 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 23 | isa = PBXCopyFilesBuildPhase; 24 | buildActionMask = 2147483647; 25 | dstPath = ""; 26 | dstSubfolderSpec = 10; 27 | files = ( 28 | ); 29 | name = "Embed Frameworks"; 30 | runOnlyForDeploymentPostprocessing = 0; 31 | }; 32 | /* End PBXCopyFilesBuildPhase section */ 33 | 34 | /* Begin PBXFileReference section */ 35 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 36 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 37 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 38 | 3BBB6A2B87147475311C2943 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 39 | 4510951890E861FBF515234C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 40 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 41 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 42 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 43 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 44 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 45 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 47 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 48 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 49 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 50 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | 9C0205507E05BF2DCEE19F03 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | FAF746AA89552BFACD28F6FE /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 6DB5BE3579EA236BD8FF1AFC /* libPods-Runner.a in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | 05ED2F5D44C8D37B1FF0EF80 /* Pods */ = { 68 | isa = PBXGroup; 69 | children = ( 70 | FAF746AA89552BFACD28F6FE /* Pods-Runner.debug.xcconfig */, 71 | 3BBB6A2B87147475311C2943 /* Pods-Runner.release.xcconfig */, 72 | 4510951890E861FBF515234C /* Pods-Runner.profile.xcconfig */, 73 | ); 74 | path = Pods; 75 | sourceTree = ""; 76 | }; 77 | 4673926210050BF578E1C260 /* Frameworks */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 9C0205507E05BF2DCEE19F03 /* libPods-Runner.a */, 81 | ); 82 | name = Frameworks; 83 | sourceTree = ""; 84 | }; 85 | 9740EEB11CF90186004384FC /* Flutter */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 89 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 90 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 91 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 92 | ); 93 | name = Flutter; 94 | sourceTree = ""; 95 | }; 96 | 97C146E51CF9000F007C117D = { 97 | isa = PBXGroup; 98 | children = ( 99 | 9740EEB11CF90186004384FC /* Flutter */, 100 | 97C146F01CF9000F007C117D /* Runner */, 101 | 97C146EF1CF9000F007C117D /* Products */, 102 | 05ED2F5D44C8D37B1FF0EF80 /* Pods */, 103 | 4673926210050BF578E1C260 /* Frameworks */, 104 | ); 105 | sourceTree = ""; 106 | }; 107 | 97C146EF1CF9000F007C117D /* Products */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 97C146EE1CF9000F007C117D /* Runner.app */, 111 | ); 112 | name = Products; 113 | sourceTree = ""; 114 | }; 115 | 97C146F01CF9000F007C117D /* Runner */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 119 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 120 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 121 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 122 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 123 | 97C147021CF9000F007C117D /* Info.plist */, 124 | 97C146F11CF9000F007C117D /* Supporting Files */, 125 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 126 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 127 | ); 128 | path = Runner; 129 | sourceTree = ""; 130 | }; 131 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 97C146F21CF9000F007C117D /* main.m */, 135 | ); 136 | name = "Supporting Files"; 137 | sourceTree = ""; 138 | }; 139 | /* End PBXGroup section */ 140 | 141 | /* Begin PBXNativeTarget section */ 142 | 97C146ED1CF9000F007C117D /* Runner */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 145 | buildPhases = ( 146 | 3896A2146FC35F18AEFDE778 /* [CP] Check Pods Manifest.lock */, 147 | 9740EEB61CF901F6004384FC /* Run Script */, 148 | 97C146EA1CF9000F007C117D /* Sources */, 149 | 97C146EB1CF9000F007C117D /* Frameworks */, 150 | 97C146EC1CF9000F007C117D /* Resources */, 151 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 152 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 153 | ); 154 | buildRules = ( 155 | ); 156 | dependencies = ( 157 | ); 158 | name = Runner; 159 | productName = Runner; 160 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 161 | productType = "com.apple.product-type.application"; 162 | }; 163 | /* End PBXNativeTarget section */ 164 | 165 | /* Begin PBXProject section */ 166 | 97C146E61CF9000F007C117D /* Project object */ = { 167 | isa = PBXProject; 168 | attributes = { 169 | LastUpgradeCheck = 1020; 170 | ORGANIZATIONNAME = "The Chromium Authors"; 171 | TargetAttributes = { 172 | 97C146ED1CF9000F007C117D = { 173 | CreatedOnToolsVersion = 7.3.1; 174 | DevelopmentTeam = V83682JSKT; 175 | }; 176 | }; 177 | }; 178 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 179 | compatibilityVersion = "Xcode 3.2"; 180 | developmentRegion = en; 181 | hasScannedForEncodings = 0; 182 | knownRegions = ( 183 | en, 184 | Base, 185 | ); 186 | mainGroup = 97C146E51CF9000F007C117D; 187 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 188 | projectDirPath = ""; 189 | projectRoot = ""; 190 | targets = ( 191 | 97C146ED1CF9000F007C117D /* Runner */, 192 | ); 193 | }; 194 | /* End PBXProject section */ 195 | 196 | /* Begin PBXResourcesBuildPhase section */ 197 | 97C146EC1CF9000F007C117D /* Resources */ = { 198 | isa = PBXResourcesBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 202 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 203 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 204 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 205 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | }; 209 | /* End PBXResourcesBuildPhase section */ 210 | 211 | /* Begin PBXShellScriptBuildPhase section */ 212 | 3896A2146FC35F18AEFDE778 /* [CP] Check Pods Manifest.lock */ = { 213 | isa = PBXShellScriptBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | ); 217 | inputFileListPaths = ( 218 | ); 219 | inputPaths = ( 220 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 221 | "${PODS_ROOT}/Manifest.lock", 222 | ); 223 | name = "[CP] Check Pods Manifest.lock"; 224 | outputFileListPaths = ( 225 | ); 226 | outputPaths = ( 227 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 228 | ); 229 | runOnlyForDeploymentPostprocessing = 0; 230 | shellPath = /bin/sh; 231 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 232 | showEnvVarsInLog = 0; 233 | }; 234 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 235 | isa = PBXShellScriptBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | ); 239 | inputPaths = ( 240 | ); 241 | name = "Thin Binary"; 242 | outputPaths = ( 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | shellPath = /bin/sh; 246 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 247 | }; 248 | 9740EEB61CF901F6004384FC /* Run Script */ = { 249 | isa = PBXShellScriptBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | ); 253 | inputPaths = ( 254 | ); 255 | name = "Run Script"; 256 | outputPaths = ( 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | shellPath = /bin/sh; 260 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 261 | }; 262 | /* End PBXShellScriptBuildPhase section */ 263 | 264 | /* Begin PBXSourcesBuildPhase section */ 265 | 97C146EA1CF9000F007C117D /* Sources */ = { 266 | isa = PBXSourcesBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 270 | 97C146F31CF9000F007C117D /* main.m in Sources */, 271 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | }; 275 | /* End PBXSourcesBuildPhase section */ 276 | 277 | /* Begin PBXVariantGroup section */ 278 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 279 | isa = PBXVariantGroup; 280 | children = ( 281 | 97C146FB1CF9000F007C117D /* Base */, 282 | ); 283 | name = Main.storyboard; 284 | sourceTree = ""; 285 | }; 286 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 287 | isa = PBXVariantGroup; 288 | children = ( 289 | 97C147001CF9000F007C117D /* Base */, 290 | ); 291 | name = LaunchScreen.storyboard; 292 | sourceTree = ""; 293 | }; 294 | /* End PBXVariantGroup section */ 295 | 296 | /* Begin XCBuildConfiguration section */ 297 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 298 | isa = XCBuildConfiguration; 299 | buildSettings = { 300 | ALWAYS_SEARCH_USER_PATHS = NO; 301 | CLANG_ANALYZER_NONNULL = YES; 302 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 303 | CLANG_CXX_LIBRARY = "libc++"; 304 | CLANG_ENABLE_MODULES = YES; 305 | CLANG_ENABLE_OBJC_ARC = YES; 306 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 307 | CLANG_WARN_BOOL_CONVERSION = YES; 308 | CLANG_WARN_COMMA = YES; 309 | CLANG_WARN_CONSTANT_CONVERSION = YES; 310 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 311 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 312 | CLANG_WARN_EMPTY_BODY = YES; 313 | CLANG_WARN_ENUM_CONVERSION = YES; 314 | CLANG_WARN_INFINITE_RECURSION = YES; 315 | CLANG_WARN_INT_CONVERSION = YES; 316 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 317 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 318 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 319 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 320 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 321 | CLANG_WARN_STRICT_PROTOTYPES = YES; 322 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 323 | CLANG_WARN_UNREACHABLE_CODE = YES; 324 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 325 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 326 | COPY_PHASE_STRIP = NO; 327 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 328 | ENABLE_NS_ASSERTIONS = NO; 329 | ENABLE_STRICT_OBJC_MSGSEND = YES; 330 | GCC_C_LANGUAGE_STANDARD = gnu99; 331 | GCC_NO_COMMON_BLOCKS = YES; 332 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 333 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 334 | GCC_WARN_UNDECLARED_SELECTOR = YES; 335 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 336 | GCC_WARN_UNUSED_FUNCTION = YES; 337 | GCC_WARN_UNUSED_VARIABLE = YES; 338 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 339 | MTL_ENABLE_DEBUG_INFO = NO; 340 | SDKROOT = iphoneos; 341 | TARGETED_DEVICE_FAMILY = "1,2"; 342 | VALIDATE_PRODUCT = YES; 343 | }; 344 | name = Profile; 345 | }; 346 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 347 | isa = XCBuildConfiguration; 348 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 349 | buildSettings = { 350 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 351 | CURRENT_PROJECT_VERSION = 1.0.0; 352 | DEVELOPMENT_TEAM = V83682JSKT; 353 | ENABLE_BITCODE = NO; 354 | FRAMEWORK_SEARCH_PATHS = ( 355 | "$(inherited)", 356 | "$(PROJECT_DIR)/Flutter", 357 | ); 358 | INFOPLIST_FILE = Runner/Info.plist; 359 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 360 | LIBRARY_SEARCH_PATHS = ( 361 | "$(inherited)", 362 | "$(PROJECT_DIR)/Flutter", 363 | ); 364 | MARKETING_VERSION = 1.0.0; 365 | PRODUCT_BUNDLE_IDENTIFIER = com.bytedance.rangersApplogFlutterPluginExample; 366 | PRODUCT_NAME = "$(TARGET_NAME)"; 367 | VERSIONING_SYSTEM = "apple-generic"; 368 | }; 369 | name = Profile; 370 | }; 371 | 97C147031CF9000F007C117D /* Debug */ = { 372 | isa = XCBuildConfiguration; 373 | buildSettings = { 374 | ALWAYS_SEARCH_USER_PATHS = NO; 375 | CLANG_ANALYZER_NONNULL = YES; 376 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 377 | CLANG_CXX_LIBRARY = "libc++"; 378 | CLANG_ENABLE_MODULES = YES; 379 | CLANG_ENABLE_OBJC_ARC = YES; 380 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 381 | CLANG_WARN_BOOL_CONVERSION = YES; 382 | CLANG_WARN_COMMA = YES; 383 | CLANG_WARN_CONSTANT_CONVERSION = YES; 384 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 385 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 386 | CLANG_WARN_EMPTY_BODY = YES; 387 | CLANG_WARN_ENUM_CONVERSION = YES; 388 | CLANG_WARN_INFINITE_RECURSION = YES; 389 | CLANG_WARN_INT_CONVERSION = YES; 390 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 391 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 392 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 393 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 394 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 395 | CLANG_WARN_STRICT_PROTOTYPES = YES; 396 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 397 | CLANG_WARN_UNREACHABLE_CODE = YES; 398 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 399 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 400 | COPY_PHASE_STRIP = NO; 401 | DEBUG_INFORMATION_FORMAT = dwarf; 402 | ENABLE_STRICT_OBJC_MSGSEND = YES; 403 | ENABLE_TESTABILITY = YES; 404 | GCC_C_LANGUAGE_STANDARD = gnu99; 405 | GCC_DYNAMIC_NO_PIC = NO; 406 | GCC_NO_COMMON_BLOCKS = YES; 407 | GCC_OPTIMIZATION_LEVEL = 0; 408 | GCC_PREPROCESSOR_DEFINITIONS = ( 409 | "DEBUG=1", 410 | "$(inherited)", 411 | ); 412 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 413 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 414 | GCC_WARN_UNDECLARED_SELECTOR = YES; 415 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 416 | GCC_WARN_UNUSED_FUNCTION = YES; 417 | GCC_WARN_UNUSED_VARIABLE = YES; 418 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 419 | MTL_ENABLE_DEBUG_INFO = YES; 420 | ONLY_ACTIVE_ARCH = YES; 421 | SDKROOT = iphoneos; 422 | TARGETED_DEVICE_FAMILY = "1,2"; 423 | }; 424 | name = Debug; 425 | }; 426 | 97C147041CF9000F007C117D /* Release */ = { 427 | isa = XCBuildConfiguration; 428 | buildSettings = { 429 | ALWAYS_SEARCH_USER_PATHS = NO; 430 | CLANG_ANALYZER_NONNULL = YES; 431 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 432 | CLANG_CXX_LIBRARY = "libc++"; 433 | CLANG_ENABLE_MODULES = YES; 434 | CLANG_ENABLE_OBJC_ARC = YES; 435 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 436 | CLANG_WARN_BOOL_CONVERSION = YES; 437 | CLANG_WARN_COMMA = YES; 438 | CLANG_WARN_CONSTANT_CONVERSION = YES; 439 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 440 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 441 | CLANG_WARN_EMPTY_BODY = YES; 442 | CLANG_WARN_ENUM_CONVERSION = YES; 443 | CLANG_WARN_INFINITE_RECURSION = YES; 444 | CLANG_WARN_INT_CONVERSION = YES; 445 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 446 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 447 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 448 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 449 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 450 | CLANG_WARN_STRICT_PROTOTYPES = YES; 451 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 452 | CLANG_WARN_UNREACHABLE_CODE = YES; 453 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 454 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 455 | COPY_PHASE_STRIP = NO; 456 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 457 | ENABLE_NS_ASSERTIONS = NO; 458 | ENABLE_STRICT_OBJC_MSGSEND = YES; 459 | GCC_C_LANGUAGE_STANDARD = gnu99; 460 | GCC_NO_COMMON_BLOCKS = YES; 461 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 462 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 463 | GCC_WARN_UNDECLARED_SELECTOR = YES; 464 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 465 | GCC_WARN_UNUSED_FUNCTION = YES; 466 | GCC_WARN_UNUSED_VARIABLE = YES; 467 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 468 | MTL_ENABLE_DEBUG_INFO = NO; 469 | SDKROOT = iphoneos; 470 | TARGETED_DEVICE_FAMILY = "1,2"; 471 | VALIDATE_PRODUCT = YES; 472 | }; 473 | name = Release; 474 | }; 475 | 97C147061CF9000F007C117D /* Debug */ = { 476 | isa = XCBuildConfiguration; 477 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 478 | buildSettings = { 479 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 480 | CURRENT_PROJECT_VERSION = 1.0.0; 481 | DEVELOPMENT_TEAM = V83682JSKT; 482 | ENABLE_BITCODE = NO; 483 | FRAMEWORK_SEARCH_PATHS = ( 484 | "$(inherited)", 485 | "$(PROJECT_DIR)/Flutter", 486 | ); 487 | INFOPLIST_FILE = Runner/Info.plist; 488 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 489 | LIBRARY_SEARCH_PATHS = ( 490 | "$(inherited)", 491 | "$(PROJECT_DIR)/Flutter", 492 | ); 493 | MARKETING_VERSION = 1.0.0; 494 | PRODUCT_BUNDLE_IDENTIFIER = com.bytedance.rangersApplogFlutterPluginExample; 495 | PRODUCT_NAME = "$(TARGET_NAME)"; 496 | VERSIONING_SYSTEM = "apple-generic"; 497 | }; 498 | name = Debug; 499 | }; 500 | 97C147071CF9000F007C117D /* Release */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 503 | buildSettings = { 504 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 505 | CURRENT_PROJECT_VERSION = 1.0.0; 506 | DEVELOPMENT_TEAM = V83682JSKT; 507 | ENABLE_BITCODE = NO; 508 | FRAMEWORK_SEARCH_PATHS = ( 509 | "$(inherited)", 510 | "$(PROJECT_DIR)/Flutter", 511 | ); 512 | INFOPLIST_FILE = Runner/Info.plist; 513 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 514 | LIBRARY_SEARCH_PATHS = ( 515 | "$(inherited)", 516 | "$(PROJECT_DIR)/Flutter", 517 | ); 518 | MARKETING_VERSION = 1.0.0; 519 | PRODUCT_BUNDLE_IDENTIFIER = com.bytedance.rangersApplogFlutterPluginExample; 520 | PRODUCT_NAME = "$(TARGET_NAME)"; 521 | VERSIONING_SYSTEM = "apple-generic"; 522 | }; 523 | name = Release; 524 | }; 525 | /* End XCBuildConfiguration section */ 526 | 527 | /* Begin XCConfigurationList section */ 528 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 529 | isa = XCConfigurationList; 530 | buildConfigurations = ( 531 | 97C147031CF9000F007C117D /* Debug */, 532 | 97C147041CF9000F007C117D /* Release */, 533 | 249021D3217E4FDB00AE95B9 /* Profile */, 534 | ); 535 | defaultConfigurationIsVisible = 0; 536 | defaultConfigurationName = Release; 537 | }; 538 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 539 | isa = XCConfigurationList; 540 | buildConfigurations = ( 541 | 97C147061CF9000F007C117D /* Debug */, 542 | 97C147071CF9000F007C117D /* Release */, 543 | 249021D4217E4FDB00AE95B9 /* Profile */, 544 | ); 545 | defaultConfigurationIsVisible = 0; 546 | defaultConfigurationName = Release; 547 | }; 548 | /* End XCConfigurationList section */ 549 | }; 550 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 551 | } 552 | --------------------------------------------------------------------------------