├── ios ├── Assets │ └── .gitkeep ├── Classes │ ├── EmasTlogPlugin.h │ └── EmasTlogPlugin.m ├── .gitignore └── emas_tlog.podspec ├── android ├── settings.gradle ├── gradle.properties ├── .gitignore ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── kotlin │ │ └── com │ │ └── kangraoo │ │ └── apm │ │ └── emas_tlog │ │ └── EmasTlogPlugin.kt ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── build.gradle ├── art └── img.png ├── .gitignore ├── CHANGELOG.md ├── example ├── 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 │ │ │ │ │ ├── drawable │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── drawable-v21 │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── values │ │ │ │ │ │ └── styles.xml │ │ │ │ │ └── values-night │ │ │ │ │ │ └── styles.xml │ │ │ │ ├── kotlin │ │ │ │ │ └── com │ │ │ │ │ │ └── kangraoo │ │ │ │ │ │ └── apm │ │ │ │ │ │ └── emas_tlog_example │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── .gitignore │ ├── settings.gradle │ └── build.gradle ├── ios │ ├── Flutter │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── 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 │ │ ├── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ │ ├── AppDelegate.m │ │ └── Info.plist │ ├── Runner.xcodeproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ │ └── IDEWorkspaceChecks.plist │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ └── project.pbxproj │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── .gitignore │ ├── Podfile │ ├── Podfile.lock │ └── AliyunEmasServices-Info.plist ├── .metadata ├── README.md ├── .gitignore ├── test │ └── widget_test.dart ├── analysis_options.yaml ├── lib │ └── main.dart ├── pubspec.yaml └── pubspec.lock ├── analysis_options.yaml ├── .metadata ├── test └── emas_tlog_test.dart ├── LICENSE ├── pubspec.yaml ├── lib └── emas_tlog.dart ├── pubspec.lock └── README.md /ios/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'emas_tlog' 2 | -------------------------------------------------------------------------------- /art/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartbackme/emas_tlog/HEAD/art/img.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | 7 | build/ 8 | /.idea/ 9 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | - First version of the emas_tlog 4 | 5 | ## 0.0.2 6 | 7 | - fix ios bug 8 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /ios/Classes/EmasTlogPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface EmasTlogPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /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/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartbackme/emas_tlog/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/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/smartbackme/emas_tlog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartbackme/emas_tlog/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/smartbackme/emas_tlog/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smartbackme/emas_tlog/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/smartbackme/emas_tlog/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/main/kotlin/com/kangraoo/apm/emas_tlog_example/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.kangraoo.apm.emas_tlog_example 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /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-6.7-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-6.7-all.zip 7 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 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: ffb2ecea5223acdd139a5039be2f9c796962833d 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: ffb2ecea5223acdd139a5039be2f9c796962833d 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/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /test/emas_tlog_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/services.dart'; 2 | import 'package:flutter_test/flutter_test.dart'; 3 | import 'package:emas_tlog/emas_tlog.dart'; 4 | 5 | void main() { 6 | const MethodChannel channel = MethodChannel('emas_tlog'); 7 | 8 | TestWidgetsFlutterBinding.ensureInitialized(); 9 | 10 | setUp(() { 11 | channel.setMockMethodCallHandler((MethodCall methodCall) async { 12 | return '42'; 13 | }); 14 | }); 15 | 16 | tearDown(() { 17 | channel.setMockMethodCallHandler(null); 18 | }); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/ephemeral/ 38 | /Flutter/flutter_export_environment.sh -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # emas_tlog_example 2 | 3 | Demonstrates how to use the emas_tlog 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 | -------------------------------------------------------------------------------- /example/ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/ephemeral/ 22 | Flutter/app.flx 23 | Flutter/app.zip 24 | Flutter/flutter_assets/ 25 | Flutter/flutter_export_environment.sh 26 | ServiceDefinitions.json 27 | Runner/GeneratedPluginRegistrant.* 28 | 29 | # Exceptions to above rules. 30 | !default.mode1v3 31 | !default.mode2v3 32 | !default.pbxuser 33 | !default.perspectivev3 34 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | ext { 2 | tlog = [ 3 | openUtdid : true 4 | ] 5 | } 6 | 7 | buildscript { 8 | ext.kotlin_version = '1.3.50' 9 | repositories { 10 | google() 11 | jcenter() 12 | } 13 | 14 | dependencies { 15 | classpath 'com.android.tools.build:gradle:4.1.0' 16 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 17 | } 18 | } 19 | 20 | allprojects { 21 | repositories { 22 | google() 23 | jcenter() 24 | } 25 | } 26 | 27 | rootProject.buildDir = '../build' 28 | subprojects { 29 | project.buildDir = "${rootProject.buildDir}/${project.name}" 30 | project.evaluationDependsOn(':app') 31 | } 32 | 33 | task clean(type: Delete) { 34 | delete rootProject.buildDir 35 | } 36 | -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 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/.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 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /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:emas_tlog_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(const 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 | -------------------------------------------------------------------------------- /ios/emas_tlog.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. 3 | # Run `pod lib lint emas_tlog.podspec` to validate before publishing. 4 | # 5 | Pod::Spec.new do |s| 6 | s.name = 'emas_tlog' 7 | s.version = '0.0.1' 8 | s.summary = 'A new Flutter project.' 9 | s.static_framework = true #静态库 10 | s.description = <<-DESC 11 | A new Flutter project. 12 | DESC 13 | s.homepage = 'http://example.com' 14 | s.license = { :file => '../LICENSE' } 15 | s.author = { 'Your Company' => 'email@example.com' } 16 | s.source = { :path => '.' } 17 | s.source_files = 'Classes/**/*' 18 | s.public_header_files = 'Classes/**/*.h' 19 | s.dependency 'Flutter' 20 | s.dependency 'AlicloudTLog' # aliyun 21 | s.platform = :ios, '8.0' 22 | 23 | # Flutter.framework does not contain a i386 slice. 24 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 25 | end 26 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 zhonghua 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /example/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | group 'com.kangraoo.apm.emas_tlog' 2 | version '1.0-SNAPSHOT' 3 | 4 | buildscript { 5 | ext.kotlin_version = '1.3.50' 6 | repositories { 7 | google() 8 | jcenter() 9 | maven { url "http://maven.aliyun.com/nexus/content/repositories/releases" } 10 | } 11 | 12 | dependencies { 13 | classpath 'com.android.tools.build:gradle:4.1.0' 14 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 15 | } 16 | } 17 | 18 | rootProject.allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | maven { url "http://maven.aliyun.com/nexus/content/repositories/releases" } 23 | } 24 | } 25 | 26 | apply plugin: 'com.android.library' 27 | apply plugin: 'kotlin-android' 28 | 29 | android { 30 | compileSdkVersion 30 31 | 32 | sourceSets { 33 | main.java.srcDirs += 'src/main/kotlin' 34 | } 35 | defaultConfig { 36 | minSdkVersion 16 37 | } 38 | } 39 | 40 | dependencies { 41 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 42 | 43 | implementation('com.aliyun.ams:alicloud-android-ha-adapter:1.1.5.1-open@aar') { 44 | transitive=true 45 | exclude group: 'com.aliyun.ams', module: 'alicloud-android-utdid' 46 | } 47 | 48 | implementation('com.aliyun.ams:alicloud-android-tlog:1.1.4.0-open@aar') { 49 | transitive=true 50 | } 51 | 52 | if (rootProject.ext.tlog.openUtdid) { 53 | implementation 'com.aliyun.ams:alicloud-android-utdid:2.5.1-proguard' 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | # aliyun日志上传 4 | source "https://github.com/CocoaPods/Specs.git" 5 | source "https://github.com/aliyun/aliyun-specs.git" 6 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 7 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 8 | 9 | project 'Runner', { 10 | 'Debug' => :debug, 11 | 'Profile' => :release, 12 | 'Release' => :release, 13 | } 14 | 15 | def flutter_root 16 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 17 | unless File.exist?(generated_xcode_build_settings_path) 18 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 19 | end 20 | 21 | File.foreach(generated_xcode_build_settings_path) do |line| 22 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 23 | return matches[1].strip if matches 24 | end 25 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 26 | end 27 | 28 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 29 | 30 | flutter_ios_podfile_setup 31 | 32 | target 'Runner' do 33 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 34 | end 35 | 36 | post_install do |installer| 37 | installer.pods_project.targets.each do |target| 38 | flutter_additional_ios_build_settings(target) 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:async'; 3 | 4 | import 'package:flutter/services.dart'; 5 | import 'package:emas_tlog/emas_tlog.dart'; 6 | 7 | void main() { 8 | runApp(MyApp()); 9 | } 10 | 11 | class MyApp extends StatefulWidget { 12 | const MyApp({Key? key}) : super(key: key); 13 | 14 | @override 15 | State createState() => _MyAppState(); 16 | } 17 | 18 | class _MyAppState extends State { 19 | String _platformVersion = 'Unknown'; 20 | 21 | @override 22 | void initState() { 23 | super.initState(); 24 | EmasTlog.init("", "", "", 25 | "", "", 26 | "", 27 | ); 28 | } 29 | 30 | @override 31 | Widget build(BuildContext context) { 32 | 33 | EmasTlog.log(ApmLogType.I, "tag2_1231231I",module: "hehe2_flutterI",tag: "tag_hehe2"); 34 | EmasTlog.log(ApmLogType.V, "tag2_1231231",module: "hehe2_flutter",tag: "tag_hehe2"); 35 | EmasTlog.log(ApmLogType.W, "tag2_1231231W",module: "hehe2_flutterW",tag: "tag_hehe2"); 36 | EmasTlog.log(ApmLogType.E, "tag2_1231231E",module: "hehe2_flutterE",tag: "tag_hehe2"); 37 | EmasTlog.log(ApmLogType.D, "tag2_1231231D",module: "hehe2_flutterD",tag: "tag_hehe2"); 38 | EmasTlog.log(ApmLogType.I, "tag2_1231231I",module: "hehe2_flutterI",tag: "tag_hehe2"); 39 | // EmasTlog.comment(); // 上报 40 | return MaterialApp( 41 | home: Scaffold( 42 | appBar: AppBar( 43 | title: const Text('Plugin example app'), 44 | ), 45 | body: Center( 46 | child: Text('Running on: $_platformVersion\n'), 47 | ), 48 | ), 49 | ); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /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/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | #import "GeneratedPluginRegistrant.h" 3 | #import 4 | #import 5 | #import 6 | 7 | #import 8 | #import 9 | #import 10 | 11 | @implementation AppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application 14 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 15 | [GeneratedPluginRegistrant registerWithRegistry:self]; 16 | // Override point for customization after application launch. 17 | 18 | // NSString *appVersion = @"1.0"; //配置项:App版本 19 | // NSString *channel = @"appstore"; //配置项:渠道标记 20 | // NSString *nick = @"AppDelegateEmas"; //配置项:用户昵称 21 | //// [[AlicloudTlogProvider alloc] autoInitWithAppVersion:appVersion channel:channel nick:nick]; 22 | // [[AlicloudTlogProvider alloc] initWithAppKey:@"333579447" secret:@"6ea5234e35d04b90b431f08376e71b78" tlogRsaSecret:@"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCND5dpkA3ovENpGu0RPV/SiUph+p6pqQz7K25IZmYo8nwIfSux0l6UUeAbICfCEqReS48w7u9y6mPiR6kEpkphxAHlXtx3T0FHPWiA0ZC8qug6AWWjGjli0mvLMZSKMG1MP4oE/VNuTNiZ8Fe2BvhUiKOovSnmYDlZ2fn+BlHh6QIDAQAB" appVersion:appVersion channel:channel nick:nick]; 23 | // [AlicloudHAProvider start]; 24 | // [TRDManagerService updateLogLevel:TLogLevelInfo]; 25 | // 26 | // 27 | // TLogBiz *log = [TLogFactory createTLogForModuleName:@"lpn_AppDelegateEmas"]; 28 | // [log info:@"info message_AppDelegateEmas"]; 29 | // 30 | // [AlicloudTlogProvider uploadTLog:@"COMMENT"]; 31 | 32 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /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 plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 30 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.kangraoo.apm.emas_tlog_example" 38 | minSdkVersion 16 39 | targetSdkVersion 30 40 | versionCode flutterVersionCode.toInteger() 41 | versionName flutterVersionName 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 59 | } 60 | -------------------------------------------------------------------------------- /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 | emas_tlog_example 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSAllowsArbitraryLoads 28 | 29 | 30 | NSBonjourServices 31 | 32 | _dartobservatory._tcp 33 | 34 | NSLocalNetworkUsageDescription 35 | Main 36 | UILaunchStoryboardName 37 | LaunchScreen 38 | UIMainStoryboardFile 39 | Main 40 | UISupportedInterfaceOrientations 41 | 42 | UIInterfaceOrientationPortrait 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | UISupportedInterfaceOrientations~ipad 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationPortraitUpsideDown 50 | UIInterfaceOrientationLandscapeLeft 51 | UIInterfaceOrientationLandscapeRight 52 | 53 | UIViewControllerBasedStatusBarAppearance 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: emas_tlog 2 | description: ali emas tlog 3 | version: 0.0.2 4 | homepage: https://github.com/smartbackme/emas_tlog 5 | 6 | environment: 7 | sdk: ">=2.12.0 <3.0.0" 8 | flutter: ">=1.20.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 'pluginClass' and Android 'package' 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.kangraoo.apm.emas_tlog 31 | pluginClass: EmasTlogPlugin 32 | ios: 33 | pluginClass: EmasTlogPlugin 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/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 8 | 15 | 19 | 23 | 28 | 32 | 33 | 34 | 35 | 36 | 37 | 39 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Classes/EmasTlogPlugin.m: -------------------------------------------------------------------------------- 1 | #import "EmasTlogPlugin.h" 2 | #import 3 | #import 4 | #import 5 | 6 | #import 7 | #import 8 | #import 9 | 10 | @implementation EmasTlogPlugin 11 | + (void)registerWithRegistrar:(NSObject*)registrar { 12 | FlutterMethodChannel* channel = [FlutterMethodChannel 13 | methodChannelWithName:@"emas_tlog" 14 | binaryMessenger:[registrar messenger]]; 15 | EmasTlogPlugin* instance = [[EmasTlogPlugin alloc] init]; 16 | NSLog(@"\n ==== %@",[UTDevice utdid]); // YZ2gRyP4t0EDAK4z2x7IRG+C 17 | NSLog(@"这是插件oc代码"); 18 | [registrar addMethodCallDelegate:instance channel:channel]; 19 | } 20 | 21 | - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { 22 | NSString *message = call.arguments[@"message"]; 23 | NSString *module = call.arguments[@"module"]; 24 | TLogBiz *log = [TLogFactory createTLogForModuleName:module]; 25 | 26 | if ([@"getPlatformVersion" isEqualToString:call.method]) { 27 | result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]); 28 | 29 | }else if([@"debug" isEqualToString:call.method]){ 30 | [log debug:message]; 31 | 32 | }else if([@"error" isEqualToString:call.method]){ 33 | [log error:message]; 34 | 35 | }else if([@"warn" isEqualToString:call.method]){ 36 | [log warn:message]; 37 | 38 | }else if([@"info" isEqualToString:call.method]){ 39 | [log info:message]; 40 | 41 | }else if([@"comment" isEqualToString:call.method]){ // 主动上传日志 42 | [AlicloudTlogProvider uploadTLog:@"COMMENT"]; 43 | 44 | }else if([@"init" isEqualToString:call.method]){ // alicloud 45 | 46 | /* 47 | appKey 48 | appSecret 49 | tlogRsaSecret 50 | appVersion // App版本 51 | channel // 渠道标记 固定外界可不传 52 | nick // 用户昵称 都不能为空 53 | */ 54 | NSString *appKey = call.arguments[@"appKeyIos"]; 55 | NSString *appSecret = call.arguments[@"appSecretIos"]; 56 | NSString *tlogRsaSecret = call.arguments[@"rsaPublicKeyIos"]; 57 | NSString *type = call.arguments[@"type"]; 58 | 59 | NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; 60 | NSString *appVersion = [infoDictionary objectForKey:@"CFBundleShortVersionString"];; //配置项:App版本号 61 | NSString *channel = call.arguments[@"channel"]; //配置项:渠道标记 62 | NSString *nick = call.arguments[@"userNick"]; //配置项:用户昵称 63 | 64 | //配置项:控制台可拉取的日志级别 65 | [[AlicloudTlogProvider alloc] initWithAppKey:appKey secret:appSecret tlogRsaSecret:tlogRsaSecret appVersion:appVersion channel:channel nick:nick]; 66 | [AlicloudHAProvider start]; 67 | // 拉取日志级别 68 | NSInteger logLevel; 69 | if([type isEqualToString:@"i"]){ 70 | logLevel = TLogLevelInfo; 71 | }else if([type isEqualToString:@"w"]){ 72 | logLevel = TLogFlagWarn; 73 | }else if([type isEqualToString:@"e"]){ 74 | logLevel = TLogFlagError; 75 | }else{ 76 | logLevel = TLogLevelDebug; // d 77 | } 78 | [TRDManagerService updateLogLevel:logLevel]; 79 | 80 | }else { 81 | result(FlutterMethodNotImplemented); 82 | } 83 | } 84 | 85 | @end 86 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: emas_tlog_example 2 | description: Demonstrates how to use the emas_tlog plugin. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | environment: 9 | sdk: ">=2.12.0 <3.0.0" 10 | 11 | # Dependencies specify other packages that your package needs in order to work. 12 | # To automatically upgrade your package dependencies to the latest versions 13 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 14 | # dependencies can be manually updated by changing the version numbers below to 15 | # the latest version available on pub.dev. To see which dependencies have newer 16 | # versions available, run `flutter pub outdated`. 17 | dependencies: 18 | flutter: 19 | sdk: flutter 20 | 21 | emas_tlog: 22 | # When depending on this package from a real application you should use: 23 | # emas_tlog: ^x.y.z 24 | # See https://dart.dev/tools/pub/dependencies#version-constraints 25 | # The example app is bundled with the plugin so we use a path dependency on 26 | # the parent directory to use the current plugin's version. 27 | path: ../ 28 | 29 | # The following adds the Cupertino Icons font to your application. 30 | # Use with the CupertinoIcons class for iOS style icons. 31 | cupertino_icons: ^1.0.2 32 | 33 | dev_dependencies: 34 | flutter_test: 35 | sdk: flutter 36 | 37 | # The "flutter_lints" package below contains a set of recommended lints to 38 | # encourage good coding practices. The lint set provided by the package is 39 | # activated in the `analysis_options.yaml` file located at the root of your 40 | # package. See that file for information about deactivating specific lint 41 | # rules and activating additional ones. 42 | flutter_lints: ^1.0.0 43 | 44 | # For information on the generic Dart part of this file, see the 45 | # following page: https://dart.dev/tools/pub/pubspec 46 | 47 | # The following section is specific to Flutter. 48 | flutter: 49 | 50 | # The following line ensures that the Material Icons font is 51 | # included with your application, so that you can use the icons in 52 | # the material Icons class. 53 | uses-material-design: true 54 | 55 | # To add assets to your application, add an assets section, like this: 56 | # assets: 57 | # - images/a_dot_burr.jpeg 58 | # - images/a_dot_ham.jpeg 59 | 60 | # An image asset can refer to one or more resolution-specific "variants", see 61 | # https://flutter.dev/assets-and-images/#resolution-aware. 62 | 63 | # For details regarding adding assets from package dependencies, see 64 | # https://flutter.dev/assets-and-images/#from-packages 65 | 66 | # To add custom fonts to your application, add a fonts section here, 67 | # in this "flutter" section. Each entry in this list should have a 68 | # "family" key with the font family name, and a "fonts" key with a 69 | # list giving the asset and other descriptors for the font. For 70 | # example: 71 | # fonts: 72 | # - family: Schyler 73 | # fonts: 74 | # - asset: fonts/Schyler-Regular.ttf 75 | # - asset: fonts/Schyler-Italic.ttf 76 | # style: italic 77 | # - family: Trajan Pro 78 | # fonts: 79 | # - asset: fonts/TrajanPro.ttf 80 | # - asset: fonts/TrajanPro_Bold.ttf 81 | # weight: 700 82 | # 83 | # For details regarding fonts from package dependencies, 84 | # see https://flutter.dev/custom-fonts/#from-packages 85 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/emas_tlog.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'dart:async'; 3 | import 'dart:io'; 4 | 5 | import 'package:flutter/services.dart'; 6 | 7 | // 打印类型 8 | enum ApmLogType { 9 | V, // verbose 10 | D, // debug 11 | I,// info 12 | W, // warn 13 | E, // error 14 | } 15 | 16 | class EmasTlog { 17 | static const MethodChannel _channel = MethodChannel('emas_tlog'); 18 | 19 | static void updateNickName(String name) { 20 | _channel.invokeMethod("updateNickName",{"name": name}); 21 | } 22 | ///主动上报日志 23 | static void comment(){ 24 | _channel.invokeMethod("comment"); 25 | } 26 | 27 | // alicloud 供外部dart调用 28 | /* 29 | * appKey 30 | appSecret 31 | tlogRsaSecret 32 | appVersion // App版本 33 | nick // 用户昵称 都不能为空 34 | * */ 35 | static void init(String appKey,String appSecret,String rsaPublicKey, 36 | String appKeyIos,String appSecretIos,String rsaPublicKeyIos, 37 | {String androidChannel = "line",String userNick = "NoLogin",ApmLogType? type,bool debug = true}){ 38 | 39 | Map params = {}; 40 | 41 | params['appKey'] = appKey; 42 | params['appSecret'] = appSecret; 43 | params['rsaPublicKey'] = rsaPublicKey; 44 | params['appKeyIos'] = appKeyIos; 45 | params['appSecretIos'] = appSecretIos; 46 | params['rsaPublicKeyIos'] = rsaPublicKeyIos; 47 | if(Platform.isIOS){ 48 | params['channel'] = "App Store"; 49 | }else if(Platform.isAndroid){ 50 | params['channel'] = androidChannel; 51 | } 52 | params['userNick'] = userNick; 53 | params['debug'] = debug; 54 | String t = "d"; 55 | if(Platform.isIOS){ 56 | t = "d"; 57 | }else if(Platform.isAndroid){ 58 | t = "v"; 59 | } 60 | 61 | switch(type){ 62 | case ApmLogType.V: 63 | if(Platform.isIOS){ 64 | t = "d"; 65 | }else if(Platform.isAndroid){ 66 | t = "v"; 67 | } 68 | break; 69 | case ApmLogType.D: 70 | t = "d"; 71 | break; 72 | case ApmLogType.I: 73 | t = "i"; 74 | break; 75 | case ApmLogType.W: 76 | t = "w"; 77 | break; 78 | case ApmLogType.E: 79 | t = "e"; 80 | break; 81 | } 82 | params['type'] = t; 83 | // 注册方法 84 | _channel.invokeMethod("init",params); 85 | 86 | } 87 | 88 | static void log(ApmLogType type,String? message,{String? module,String? tag}) { 89 | Map params = {}; 90 | params['module'] = module??""; 91 | var method; 92 | if(Platform.isIOS){ 93 | params['message'] = "${tag??""}-${message??""}"; 94 | switch(type){ 95 | case ApmLogType.V: 96 | method = "debug"; 97 | break; 98 | case ApmLogType.D: 99 | method = "debug"; 100 | break; 101 | case ApmLogType.I: 102 | method = "info"; 103 | break; 104 | case ApmLogType.W: 105 | method = "warn"; 106 | break; 107 | case ApmLogType.E: 108 | method = "error"; 109 | break; 110 | } 111 | }else if(Platform.isAndroid){ 112 | params['tag'] = tag??""; 113 | params['message'] = message??""; 114 | switch(type){ 115 | case ApmLogType.V: 116 | method = "logv"; 117 | break; 118 | case ApmLogType.D: 119 | method = "logd"; 120 | break; 121 | case ApmLogType.I: 122 | method = "logi"; 123 | break; 124 | case ApmLogType.W: 125 | method = "logw"; 126 | break; 127 | case ApmLogType.E: 128 | method = "loge"; 129 | break; 130 | } 131 | } 132 | _channel.invokeMethod(method,params); 133 | } 134 | } 135 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AlicloudHAUtil (1.0.1): 3 | - AliHACore 4 | - TBRest 5 | - ZipArchive 6 | - AlicloudSettingService (1.0.0): 7 | - EMASRest 8 | - AlicloudTLog (1.0.1.1): 9 | - AlicloudHAUtil 10 | - AlicloudSettingService 11 | - AlicloudUtils 12 | - AliHACore (~> 10.0.3) 13 | - AliHAProtocol (~> 10.0.3) 14 | - AliHASecurity (~> 10.0.4) 15 | - RemoteDebugChannel (~> 10.0.4) 16 | - TBRest (~> 10.1.1) 17 | - TRemoteDebugger (~> 10.0.4) 18 | - AlicloudUTDID (1.5.0.94) 19 | - AlicloudUtils (1.3.9): 20 | - AlicloudUTDID 21 | - AliHACore (10.0.3.6): 22 | - AliHALogEngine (>= 10.0.2) 23 | - AliHAProtocol (>= 10.0.2.1) 24 | - TBJSONModel 25 | - TBRest (>= 1.0.0.18) 26 | - AliHALogEngine (10.0.5) 27 | - AliHAMethodTrace (10.0.4) 28 | - AliHAProtocol (10.0.3): 29 | - TBJSONModel 30 | - AliHASecurity (10.0.4) 31 | - AliRemoteDebugInterface (0.0.1.4) 32 | - AliyunOSSiOS (2.10.11) 33 | - emas_tlog (0.0.1): 34 | - AlicloudTLog 35 | - Flutter 36 | - EMASRest (11.1.1.2) 37 | - Flutter (1.0.0) 38 | - RemoteDebugChannel (10.0.4.5): 39 | - AliHAProtocol (>= 10.0.0.3) 40 | - AliHASecurity 41 | - AliyunOSSiOS 42 | - TBJSONModel 43 | - TBRest (>= 1.0.0.18) 44 | - ZipArchive 45 | - TBJSONModel (0.1.15.1) 46 | - TBRest (10.1.1.0) 47 | - TRemoteDebugger (10.0.6.4): 48 | - AliHALogEngine (>= 10.0.5) 49 | - AliHAMethodTrace (>= 1.0.1.2) 50 | - AliHAProtocol (>= 10.0.0.5) 51 | - AliHASecurity (>= 10.0.4) 52 | - AliRemoteDebugInterface (>= 0.0.1.2) 53 | - TBJSONModel 54 | - TBRest (>= 1.0.0.18) 55 | - ZipArchive (1.4.0) 56 | 57 | DEPENDENCIES: 58 | - emas_tlog (from `.symlinks/plugins/emas_tlog/ios`) 59 | - Flutter (from `Flutter`) 60 | 61 | SPEC REPOS: 62 | https://github.com/aliyun/aliyun-specs.git: 63 | - AlicloudHAUtil 64 | - AlicloudSettingService 65 | - AlicloudTLog 66 | - AlicloudUTDID 67 | - AlicloudUtils 68 | - AliHACore 69 | - AliHALogEngine 70 | - AliHAMethodTrace 71 | - AliHAProtocol 72 | - AliHASecurity 73 | - AliRemoteDebugInterface 74 | - EMASRest 75 | - RemoteDebugChannel 76 | - TBJSONModel 77 | - TBRest 78 | - TRemoteDebugger 79 | https://github.com/CocoaPods/Specs.git: 80 | - AliyunOSSiOS 81 | - ZipArchive 82 | 83 | EXTERNAL SOURCES: 84 | emas_tlog: 85 | :path: ".symlinks/plugins/emas_tlog/ios" 86 | Flutter: 87 | :path: Flutter 88 | 89 | SPEC CHECKSUMS: 90 | AlicloudHAUtil: 99e5929118fdd73f8ac27807c13e2cded5d4b048 91 | AlicloudSettingService: f78d8433dd722a47c69c5a70ba75c301312f3a85 92 | AlicloudTLog: 799d2a840be884d9c2ffc6e1ebef2cbf1ee54e08 93 | AlicloudUTDID: 7323c443dcdf9a73e2224dc6ce51703671d7a765 94 | AlicloudUtils: 66e0ba6ece62d7dd05e9dd95674b2c7811624c2f 95 | AliHACore: 631974dc2ab61ffed5ba743e339defb5c9e028c0 96 | AliHALogEngine: 22b83d8cfb4fbc2c22a2238574bc295b2dbba48d 97 | AliHAMethodTrace: 31ebea278dfc3dfead7c47a75fc995c79d14ac36 98 | AliHAProtocol: fd6ba550c1888b51cc1cd55a21f220fccadd7a26 99 | AliHASecurity: feacfe93b806c1c1a03e2d03c4968d7021df6851 100 | AliRemoteDebugInterface: acc89a6becba06e3c009465cbc377b297d745fcb 101 | AliyunOSSiOS: 7bc7ca588207ce536c1dffe732c3d4fe342e23cf 102 | emas_tlog: 84cdd7c9ed70aa617dfd6c0b3b0e179d5246c34b 103 | EMASRest: 8df6f87836767a9415ad5cc4af739bc9d215b475 104 | Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a 105 | RemoteDebugChannel: 6cf6628a167a1c6c530d32f21d16cf38a5a24bd4 106 | TBJSONModel: 2c95a8789bc3d98a2a773dd09c41ddeb902a200b 107 | TBRest: 36fcaf59c76692eae5acf4c8fd469748d453a327 108 | TRemoteDebugger: 02207f8e53cfe4af80007402be62d4d198d29dba 109 | ZipArchive: e25a4373192673e3229ac8d6e9f64a3e5713c966 110 | 111 | PODFILE CHECKSUM: f20d6e4b5be2439ee01cd5f9ffd77dec7614eba6 112 | 113 | COCOAPODS: 1.11.2 114 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.flutter-io.cn" 9 | source: hosted 10 | version: "2.8.1" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.flutter-io.cn" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 22 | url: "https://pub.flutter-io.cn" 23 | source: hosted 24 | version: "1.1.0" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.flutter-io.cn" 30 | source: hosted 31 | version: "1.3.1" 32 | clock: 33 | dependency: transitive 34 | description: 35 | name: clock 36 | url: "https://pub.flutter-io.cn" 37 | source: hosted 38 | version: "1.1.0" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.flutter-io.cn" 44 | source: hosted 45 | version: "1.15.0" 46 | fake_async: 47 | dependency: transitive 48 | description: 49 | name: fake_async 50 | url: "https://pub.flutter-io.cn" 51 | source: hosted 52 | version: "1.2.0" 53 | flutter: 54 | dependency: "direct main" 55 | description: flutter 56 | source: sdk 57 | version: "0.0.0" 58 | flutter_test: 59 | dependency: "direct dev" 60 | description: flutter 61 | source: sdk 62 | version: "0.0.0" 63 | matcher: 64 | dependency: transitive 65 | description: 66 | name: matcher 67 | url: "https://pub.flutter-io.cn" 68 | source: hosted 69 | version: "0.12.10" 70 | meta: 71 | dependency: transitive 72 | description: 73 | name: meta 74 | url: "https://pub.flutter-io.cn" 75 | source: hosted 76 | version: "1.7.0" 77 | path: 78 | dependency: transitive 79 | description: 80 | name: path 81 | url: "https://pub.flutter-io.cn" 82 | source: hosted 83 | version: "1.8.0" 84 | sky_engine: 85 | dependency: transitive 86 | description: flutter 87 | source: sdk 88 | version: "0.0.99" 89 | source_span: 90 | dependency: transitive 91 | description: 92 | name: source_span 93 | url: "https://pub.flutter-io.cn" 94 | source: hosted 95 | version: "1.8.1" 96 | stack_trace: 97 | dependency: transitive 98 | description: 99 | name: stack_trace 100 | url: "https://pub.flutter-io.cn" 101 | source: hosted 102 | version: "1.10.0" 103 | stream_channel: 104 | dependency: transitive 105 | description: 106 | name: stream_channel 107 | url: "https://pub.flutter-io.cn" 108 | source: hosted 109 | version: "2.1.0" 110 | string_scanner: 111 | dependency: transitive 112 | description: 113 | name: string_scanner 114 | url: "https://pub.flutter-io.cn" 115 | source: hosted 116 | version: "1.1.0" 117 | term_glyph: 118 | dependency: transitive 119 | description: 120 | name: term_glyph 121 | url: "https://pub.flutter-io.cn" 122 | source: hosted 123 | version: "1.2.0" 124 | test_api: 125 | dependency: transitive 126 | description: 127 | name: test_api 128 | url: "https://pub.flutter-io.cn" 129 | source: hosted 130 | version: "0.4.2" 131 | typed_data: 132 | dependency: transitive 133 | description: 134 | name: typed_data 135 | url: "https://pub.flutter-io.cn" 136 | source: hosted 137 | version: "1.3.0" 138 | vector_math: 139 | dependency: transitive 140 | description: 141 | name: vector_math 142 | url: "https://pub.flutter-io.cn" 143 | source: hosted 144 | version: "2.1.0" 145 | sdks: 146 | dart: ">=2.12.0 <3.0.0" 147 | flutter: ">=1.20.0" 148 | -------------------------------------------------------------------------------- /example/ios/AliyunEmasServices-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | config 6 | 7 | emas.appKey 8 | 333579447 9 | emas.appSecret 10 | 6ea5234e35d04b90b431f08376e71b78 11 | emas.bundleId 12 | com.zkhy.flutterZkhyYj 13 | hotfix.idSecret 14 | 333579447-2 15 | hotfix.rsaSecret 16 | MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCzhOAcGUFY4CX6lzyY3/mWyPlAt0uLvUkOGtcMth4CdNQusiI9LYa4RzCWRfKQDfY/nyKrEK4D0cWpGbeEtieLkmQn6cWeCC8miQK3V1aGn6/3ptp9j29QxecxNZsQTUUvC/SkrxbW+acO223310+I2A/szu9843UoPngaIwwEKmV1gb8cF1/DFPlLTAu1AYX29UJcyRIgwu4jt9Vu81g6YmvDV61MXf4G9cbPUvFeQT2DL1AQbr/hlCx28shk6+LCM3CeIFFuH98fumhiDsRXm1MIUQ6YLNWPPmhj8AcrZhZFEKBmfOmh0IkkE2FFgH1+DLMWKTF/GwziLSvkJngtAgMBAAECggEAQp7AEI1qy9G7JmjzqwQLeuKwZUzgc0ZWky5wuh3nux+iEoY24J9BjKeWp13j64PS679hvTweZ/p0MRIDIfP7bvdvxcQie0gsP0+/O0zlJmaihfRcxxXwyHf5GTD8j6stTo1QR8FWZ4cUcRYLlFtJ/8228znEdINw2fN83K4+6lg1bf+YpgVbPS3ANZPqwaJ/pCWcRDUgxj/lMSrFu/OSWYYqglzwib/xYGQKmLzWFCfTn5Aehq4dZttVx1YJ+k+Ae0iLOx4JvSsWZ/0tPfScc4/0ZdbFpaWBjjH1iPTeQvtCyShaF90HDuJ+FBOqpmvKZbvRLRZuJGfwfdji6X6ifQKBgQDu0tLy0bzvDquwNVGi51x82uDGBirtd62zdj6VNeZYuG4Lf6cd2vJ2hex993ebLpHTMc+FUgvaigz2zNtVVt9ez323dlT0A8cQbfjTOCUtStt4Us8CTEW3Aj600VLMlm6LGPMw7YWbpJTHHH7dkg3Oxxf5DNAhtCEhT5qIlSS8iwKBgQDAbiXZdlyokgtb5GOvjW8hL6UeFLtqdtNHp8eNz+IqQ0R8+TQtUEIpSIoZteqyI/XbWenT1GOhvrdWeiCHq+Ej9EyLEPCbY7++lsWvcgmQOioSSbCJJm3WhnpXY05+MPR+W6CbOfJAx7bLnNmxhOs/c1iQzsEjosmeNaV18tYdJwKBgQDfWrSG+7jjKqlPRs5uuEo7Ssjk6mfDZyZArNmi2qHvX60re9tjhJ02U9H1jTeDHm6rQe5/FViYrnupZbXLfk+xcAR3TGfvPokxyGfpwpyiW1wej/Oihoq8uZDDsvDo/desp0zp+Xn3MlkiTngn6KyZMoItHdqZasmBSd2Q10tgOQKBgElRLmaerEsl6eIHMNwQXUkdqCG/8HBt+a4RhPzJOfi0TIH5SSICtFKaatPE9jkNbn020tp8z8EusxflzEMk/9D9IbTSrXnnFYV+WK+yGWa0Ypc5MGPxGmRkNHTbR2rZKC6Eprq950k7TrBhgKgcZq10O0hhHkF/oqX+9p3r+hx9AoGAdpBJXrq6xL2WQulVtLvP/uIlrRy8exUCk1iZh9Ksr3kHhY5ZNQbo2le1BUsg5iU25gf3gJ4FX6w1SC2zKysImBfETmHjNnRBPXRIbt15NWwfk/453KAVjD2PWQ9De1xq7A7+VI8n9EPcOlqbKCM7OuCz9XqTd/Eg/EAd6HucN/s= 17 | httpdns.accountId 18 | 171372 19 | httpdns.secretKey 20 | 78a52f6b89febf54a8840e85b6523fe7 21 | appmonitor.tlog.rsaSecret 22 | MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCND5dpkA3ovENpGu0RPV/SiUph+p6pqQz7K25IZmYo8nwIfSux0l6UUeAbICfCEqReS48w7u9y6mPiR6kEpkphxAHlXtx3T0FHPWiA0ZC8qug6AWWjGjli0mvLMZSKMG1MP4oE/VNuTNiZ8Fe2BvhUiKOovSnmYDlZ2fn+BlHh6QIDAQAB 23 | appmonitor.rsaSecret 24 | MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCND5dpkA3ovENpGu0RPV/SiUph+p6pqQz7K25IZmYo8nwIfSux0l6UUeAbICfCEqReS48w7u9y6mPiR6kEpkphxAHlXtx3T0FHPWiA0ZC8qug6AWWjGjli0mvLMZSKMG1MP4oE/VNuTNiZ8Fe2BvhUiKOovSnmYDlZ2fn+BlHh6QIDAQAB 25 | 26 | services 27 | 28 | hotfix_service 29 | 30 | status 31 | 1 32 | version 33 | 1.0.0-1 34 | 35 | feedback_service 36 | 37 | status 38 | 1 39 | version 40 | 3.3.9 41 | 42 | tlog_service 43 | 44 | status 45 | 1 46 | version 47 | 1.0.1.1 48 | 49 | httpdns_service 50 | 51 | status 52 | 1 53 | version 54 | 2.0.5 55 | 56 | apm_service 57 | 58 | status 59 | 1 60 | version 61 | 1.1.1 62 | 63 | crashreporter_service 64 | 65 | status 66 | 1 67 | version 68 | 1.2.0 69 | 70 | man_service 71 | 72 | status 73 | 0 74 | version 75 | 1.0.13 76 | 77 | cps_service 78 | 79 | status 80 | 1 81 | version 82 | 1.9.9.6 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /example/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.8.1" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.0" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.3.1" 32 | clock: 33 | dependency: transitive 34 | description: 35 | name: clock 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.15.0" 46 | cupertino_icons: 47 | dependency: "direct main" 48 | description: 49 | name: cupertino_icons 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.0.4" 53 | emas_tlog: 54 | dependency: "direct main" 55 | description: 56 | path: ".." 57 | relative: true 58 | source: path 59 | version: "0.0.1" 60 | fake_async: 61 | dependency: transitive 62 | description: 63 | name: fake_async 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.2.0" 67 | flutter: 68 | dependency: "direct main" 69 | description: flutter 70 | source: sdk 71 | version: "0.0.0" 72 | flutter_lints: 73 | dependency: "direct dev" 74 | description: 75 | name: flutter_lints 76 | url: "https://pub.dartlang.org" 77 | source: hosted 78 | version: "1.0.4" 79 | flutter_test: 80 | dependency: "direct dev" 81 | description: flutter 82 | source: sdk 83 | version: "0.0.0" 84 | lints: 85 | dependency: transitive 86 | description: 87 | name: lints 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "1.0.1" 91 | matcher: 92 | dependency: transitive 93 | description: 94 | name: matcher 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "0.12.10" 98 | meta: 99 | dependency: transitive 100 | description: 101 | name: meta 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.7.0" 105 | path: 106 | dependency: transitive 107 | description: 108 | name: path 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.8.0" 112 | sky_engine: 113 | dependency: transitive 114 | description: flutter 115 | source: sdk 116 | version: "0.0.99" 117 | source_span: 118 | dependency: transitive 119 | description: 120 | name: source_span 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.8.1" 124 | stack_trace: 125 | dependency: transitive 126 | description: 127 | name: stack_trace 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.10.0" 131 | stream_channel: 132 | dependency: transitive 133 | description: 134 | name: stream_channel 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "2.1.0" 138 | string_scanner: 139 | dependency: transitive 140 | description: 141 | name: string_scanner 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.1.0" 145 | term_glyph: 146 | dependency: transitive 147 | description: 148 | name: term_glyph 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.2.0" 152 | test_api: 153 | dependency: transitive 154 | description: 155 | name: test_api 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "0.4.2" 159 | typed_data: 160 | dependency: transitive 161 | description: 162 | name: typed_data 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.3.0" 166 | vector_math: 167 | dependency: transitive 168 | description: 169 | name: vector_math 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "2.1.0" 173 | sdks: 174 | dart: ">=2.12.0 <3.0.0" 175 | flutter: ">=1.20.0" 176 | -------------------------------------------------------------------------------- /android/src/main/kotlin/com/kangraoo/apm/emas_tlog/EmasTlogPlugin.kt: -------------------------------------------------------------------------------- 1 | package com.kangraoo.apm.emas_tlog 2 | 3 | import android.app.Application 4 | import android.content.Context 5 | import androidx.annotation.NonNull 6 | 7 | import io.flutter.embedding.engine.plugins.FlutterPlugin 8 | import io.flutter.plugin.common.MethodCall 9 | import io.flutter.plugin.common.MethodChannel 10 | import io.flutter.plugin.common.MethodChannel.MethodCallHandler 11 | import io.flutter.plugin.common.MethodChannel.Result 12 | import com.alibaba.ha.adapter.service.tlog.TLogService; 13 | import com.alibaba.ha.adapter.service.tlog.TLogLevel 14 | 15 | import com.alibaba.ha.adapter.AliHaAdapter 16 | 17 | import com.alibaba.ha.adapter.AliHaConfig 18 | import com.alibaba.ha.adapter.Plugin 19 | /** EmasTlogPlugin */ 20 | class EmasTlogPlugin: FlutterPlugin, MethodCallHandler { 21 | /// The MethodChannel that will the communication between Flutter and native Android 22 | /// 23 | /// This local reference serves to register the plugin with the Flutter Engine and unregister it 24 | /// when the Flutter Engine is detached from the Activity 25 | private lateinit var channel : MethodChannel 26 | private var context: Context? = null 27 | 28 | override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) { 29 | channel = MethodChannel(flutterPluginBinding.binaryMessenger, "emas_tlog") 30 | channel.setMethodCallHandler(this) 31 | context = flutterPluginBinding.applicationContext 32 | } 33 | 34 | override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) { 35 | when { 36 | call.method.startsWith("log") -> { 37 | log(call, result) 38 | } 39 | call.method=="updateNickName" -> { 40 | val name = call.argument("name") 41 | AliHaAdapter.getInstance().updateUserNick(name) 42 | } 43 | call.method=="comment" -> { 44 | TLogService.positiveUploadTlog("COMMENT"); 45 | } 46 | call.method=="init" -> { 47 | val appKey = call.argument("appKey") 48 | val appSecret = call.argument("appSecret") 49 | val rsaPublicKey = call.argument("rsaPublicKey") 50 | val channel = call.argument("channel") 51 | val userNick = call.argument("userNick") 52 | val type = call.argument("type") 53 | val debug = call.argument("debug") 54 | val config = AliHaConfig() 55 | config.appKey = appKey //配置项:appkey 56 | config.appSecret = appSecret //配置项:appsecret 57 | config.channel = channel //配置项:应用的渠道号标记,自定义 58 | config.rsaPublicKey = rsaPublicKey //配置项:tlog公钥 59 | config.userNick = userNick //配置项:用户的昵称 60 | 61 | config.appVersion = getVersionName() //配置项:应用的版本号 62 | 63 | config.application = context!!.applicationContext as Application //配置项:应用指针 64 | 65 | config.context = context!!.applicationContext //配置项:应用上下文 66 | 67 | config.isAliyunos = false //配置项:是否为yunos 68 | 69 | 70 | AliHaAdapter.getInstance().addPlugin(Plugin.tlog) 71 | AliHaAdapter.getInstance().openDebug(debug) 72 | AliHaAdapter.getInstance().start(config) 73 | if(type!=null){ 74 | when (type) { 75 | "v"->{ 76 | TLogService.updateLogLevel(TLogLevel.VERBOSE) //配置项:控制台可拉取的日志级别 77 | } 78 | "d"->{ 79 | TLogService.updateLogLevel(TLogLevel.VERBOSE) //配置项:控制台可拉取的日志级别 80 | } 81 | "i"->{ 82 | TLogService.updateLogLevel(TLogLevel.INFO) //配置项:控制台可拉取的日志级别 83 | } 84 | "w"->{ 85 | TLogService.updateLogLevel(TLogLevel.WARN) //配置项:控制台可拉取的日志级别 86 | } 87 | "e"->{ 88 | TLogService.updateLogLevel(TLogLevel.ERROR) //配置项:控制台可拉取的日志级别 89 | } 90 | } 91 | } 92 | 93 | } 94 | else -> { 95 | result.notImplemented() 96 | } 97 | } 98 | } 99 | 100 | fun log(@NonNull call: MethodCall, @NonNull result: Result){ 101 | val message = call.argument("message") 102 | val module = call.argument("module") 103 | val tag = call.argument("tag") 104 | when (call.method) { 105 | "logv"->{ 106 | TLogService.logv(module,tag,message); 107 | } 108 | "logd"->{ 109 | TLogService.logd(module,tag,message); 110 | } 111 | "logi"->{ 112 | TLogService.logi(module,tag,message); 113 | } 114 | "logw"->{ 115 | TLogService.logw(module,tag,message); 116 | } 117 | "loge"->{ 118 | TLogService.loge(module,tag,message); 119 | } 120 | } 121 | result.success(true) 122 | } 123 | 124 | 125 | override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) { 126 | channel.setMethodCallHandler(null) 127 | } 128 | 129 | fun getVersionName():String = context!!.packageManager.getPackageInfo(context!!.packageName,0).versionName 130 | 131 | } 132 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # emas_tlog 2 | 3 | ```ali emas tlog``` 4 | 5 | 阿里巴巴```flutter``` 版本 远程日志 ```TLog``` 6 | 7 | ## 介绍 8 | 9 | 远程日志服务提供远程手机日志拉取功能,解决移动```App```线上异常排查困难的问题。 10 | 远程日志服务支持```Android/iOS```应用类型。 11 | 12 | ## 产品架构 13 | 14 | ![](art/img.png) 15 | 16 | 1.移动```App```集成```SDK```。 17 | 2.远程日志服务通过心跳探测识别已安装```App```的移动终端,并进行日志拉取配置。 18 | 3.远程日志服务拉取指定移动终端```App```的用户日志,并对拉取任务进行管理。 19 | 4.远程日志服务查看已从终端设备拉取至控制台的用户日志。 20 | 21 | 官网地址:[官网地址](https://help.aliyun.com/document_detail/164992.html) 22 | 23 | 本项目是根据官方来制作的```flutter```版本 24 | 25 | ## 快速开始 26 | 27 | #####```flutter```配置: 28 | 29 | ``` 30 | emas_tlog: ^0.0.2 31 | ``` 32 | 33 | 初始化: 34 | 35 | ``` 36 | 方法的声明: 37 | static void init(String appKey,String appSecret,String rsaPublicKey, 38 | String appKeyIos,String appSecretIos,String rsaPublicKeyIos, 39 | {String androidChannel = "line",String userNick = "NoLogin",ApmLogType? type,bool debug = true}){ 40 | // xxxxxx 41 | } 42 | 方法的调用: 43 | EmasTlog.init("**", "**", "**", 44 | "**","**","**", 45 | androidChannel :"HEHE",userNick: "lalala2"); 46 | ``` 47 | 48 | 参数说明: 49 | ```appKey``` 50 | ```appSecret``` 51 | ```rsaPublicKey``` 52 | ```appKeyIos```:```iOS```的```emas.appKey``` 53 | ```appSecretIos```:```iOS```的```emas.appSecret``` 54 | ```rsaPublicKeyIos```:```iOS```的```appmonitor.tlog.rsaSecret``` 55 | ```androidChannel```: 渠道 (```iOS``` 指定 ```App Store```) 56 | ```userNick```: 用户昵称说明: 默认值```NoLogin``` 57 | ```type``` (*日志上传类型,```注:iOS若不传,默认是I```) 58 | ```debug``` (底层运行日志答应)```true``` 测试环境开启 ```false``` 正式环境 关闭(```iOS```可不传) 59 | 60 | *星号标记说明 61 | 62 | ```V:```可拉取所有级别的日志。(```iOS```无此类型) 63 | 64 | ```D:```可拉取```DEBUG/INFO/WARN/ERROR```级别的日志。 65 | 66 | ```I:```可拉取```INFO/WARN/ERROR```级别的日志。 67 | 68 | ```W:```可拉取```WARN/ERROR```级别的日志。 69 | 70 | ```E:```可拉取```ERROR```级别的日志。 71 | 72 | 日常使用: 73 | 74 | ``` 75 | 方法的声明: 76 | static void init(String appKey,String appSecret,String rsaPublicKey, 77 | String appKeyIos,String appSecretIos,String rsaPublicKeyIos, 78 | {String androidChannel = "line",String userNick = "NoLogin",ApmLogType? type,bool debug = true}){ 79 | // xxxxx 80 | } 81 | 82 | 方法的调用: 83 | EmasTlog.log(ApmLogType.I, "tag2_1231231",module: "hehe2_flutter",tag: "tag_hehe2"); 84 | EmasTlog.log(ApmLogType.V, "tag2_1231231",module: "hehe2_flutter",tag: "tag_hehe2"); 85 | EmasTlog.log(ApmLogType.W, "tag2_1231231",module: "hehe2_flutter",tag: "tag_hehe2"); 86 | EmasTlog.log(ApmLogType.E, "tag2_1231231",module: "hehe2_flutter",tag: "tag_hehe2"); 87 | EmasTlog.log(ApmLogType.D, "tag2_1231231",module: "hehe2_flutter",tag: "tag_hehe2"); 88 | EmasTlog.log(ApmLogType.I, "tag2_1231231",module: "hehe2_flutter",tag: "tag_hehe2"); 89 | ``` 90 | 91 | 说明: 92 | ```module``` 为模块业务,可以为空 93 | 94 | ``` 95 | EmasTlog.comment(); 主动上传日志 96 | EmasTlog.updateNickName(name) 修改用户名(用于登录切换用户) 97 | ``` 98 | 99 | #####```Android``` 配置: 100 | 1、在根项目```Android```目录```build.gradle```配置如下代码 101 | 102 | ``` 103 | 104 | ext { 105 | tlog = [ 106 | openUtdid : true 107 | ] 108 | } 109 | 110 | ``` 111 | 112 | 说明: 113 | 如果项目编译期报类似如下错误 114 | 115 | ``` 116 | 117 | Duplicate class com.ta.utdid2.a.a.a found in modules jetified-alicloud-android-utdid-2.5.1-proguard (com.aliyun.ams:alicloud-android-utdid:2.5.1-proguard) and jetified-utdid-1.5.2.1 (com.umeng.umsdk:utdid:1.5.2.1) 118 | 119 | ``` 120 | 121 | 则代码需要调整为 122 | 123 | ``` 124 | 125 | ext { 126 | tlog = [ 127 | openUtdid : false 128 | ] 129 | } 130 | 131 | ``` 132 | 133 | 配置展示: 134 | 135 | ``` 136 | 137 | ext { 138 | tlog = [ 139 | openUtdid : true 140 | ] 141 | } 142 | 143 | buildscript { 144 | ext.kotlin_version = '1.3.50' 145 | repositories { 146 | google() 147 | jcenter() 148 | } 149 | 150 | dependencies { 151 | classpath 'com.android.tools.build:gradle:4.1.0' 152 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 153 | } 154 | } 155 | 156 | allprojects { 157 | repositories { 158 | google() 159 | jcenter() 160 | } 161 | } 162 | 163 | ``` 164 | 165 | 根```app AndroidManifest``` 配置: 166 | 167 | ``` 168 | 169 | 172 | 173 | 176 | 177 | ``` 178 | 179 | 说明需要 配置 ```tools:replace="android:label"``` 180 | 181 | #####iOS 的配置说明 182 | 1、在```Flutter```项目的```iOS```端的```Podfile```中添加如下索引库地址: 183 | ``` 184 | # alicloud 185 | source "https://github.com/CocoaPods/Specs.git" 186 | source "https://github.com/aliyun/aliyun-specs.git" 187 | ``` 188 | 2、在```Flutter```项目的```iOS```端的```info.plist```文件中添加如下代码: 189 | ``` 190 | NSAppTransportSecurity 191 | 192 | NSAllowsArbitraryLoads 193 | 194 | 195 | NSBonjourServices 196 | 197 | _dartobservatory._tcp 198 | 199 | NSLocalNetworkUsageDescription 200 | Main 201 | ``` 202 | 3、在```iOS```端项目```Build Setting```中,将```Allow Non-modular Includes In Framework Modules```设置为```YES``` 203 | #####iOS报错情况解决: 204 | ```问题1:``` 205 | ``` 206 | Flutter: target has transitive dependencies that include statically linked binariesxxxx 207 | ``` 208 | ```解决问题1:``` 209 | ``` 210 | target 'Runner' do 211 | # use_frameworks! 212 | use_modular_headers! 213 | 214 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 215 | end 216 | ``` 217 | ```注释掉use_frameworks! ``` 218 | 如果存在其他含swift文件的插件的情况,这会造成新问题(Swift与OC汇编找不到文件) 219 | 故,以上解决办法不可取,需要保留```use_frameworks!```加入下面的代码即可: 220 | ``` 221 | pre_install do |installer| 222 | # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289 静态库 223 | Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {} 224 | end 225 | ``` -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 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 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 13 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 17 | BE781F5CBCBB4506CFC894D1 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E30DC36B0BB93B2EB6F15694 /* libPods-Runner.a */; }; 18 | D0A116AB274F23FD00D42345 /* AliyunEmasServices-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = D0A116AA274F23FD00D42345 /* AliyunEmasServices-Info.plist */; }; 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 | 37938D5FE56BEB796692A6F0 /* 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 = ""; }; 38 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 39 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 40 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 41 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 42 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 43 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 44 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 46 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 47 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 48 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 49 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | A87AEE825FF5243794562AED /* 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 = ""; }; 51 | B86BB6D58D567D8F3D236F07 /* 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 = ""; }; 52 | D0A116AA274F23FD00D42345 /* AliyunEmasServices-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "AliyunEmasServices-Info.plist"; sourceTree = ""; }; 53 | E30DC36B0BB93B2EB6F15694 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | BE781F5CBCBB4506CFC894D1 /* libPods-Runner.a in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 119938ADECFB810B2DA1D079 /* Frameworks */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | E30DC36B0BB93B2EB6F15694 /* libPods-Runner.a */, 72 | ); 73 | name = Frameworks; 74 | sourceTree = ""; 75 | }; 76 | 395FC76AB01071BEAD12D180 /* Pods */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | 37938D5FE56BEB796692A6F0 /* Pods-Runner.debug.xcconfig */, 80 | B86BB6D58D567D8F3D236F07 /* Pods-Runner.release.xcconfig */, 81 | A87AEE825FF5243794562AED /* Pods-Runner.profile.xcconfig */, 82 | ); 83 | path = Pods; 84 | sourceTree = ""; 85 | }; 86 | 9740EEB11CF90186004384FC /* Flutter */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 90 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 91 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 92 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 93 | ); 94 | name = Flutter; 95 | sourceTree = ""; 96 | }; 97 | 97C146E51CF9000F007C117D = { 98 | isa = PBXGroup; 99 | children = ( 100 | D0A116AA274F23FD00D42345 /* AliyunEmasServices-Info.plist */, 101 | 9740EEB11CF90186004384FC /* Flutter */, 102 | 97C146F01CF9000F007C117D /* Runner */, 103 | 97C146EF1CF9000F007C117D /* Products */, 104 | 395FC76AB01071BEAD12D180 /* Pods */, 105 | 119938ADECFB810B2DA1D079 /* Frameworks */, 106 | ); 107 | sourceTree = ""; 108 | }; 109 | 97C146EF1CF9000F007C117D /* Products */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 97C146EE1CF9000F007C117D /* Runner.app */, 113 | ); 114 | name = Products; 115 | sourceTree = ""; 116 | }; 117 | 97C146F01CF9000F007C117D /* Runner */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 121 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 122 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 123 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 124 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 125 | 97C147021CF9000F007C117D /* Info.plist */, 126 | 97C146F11CF9000F007C117D /* Supporting Files */, 127 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 128 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 129 | ); 130 | path = Runner; 131 | sourceTree = ""; 132 | }; 133 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 97C146F21CF9000F007C117D /* main.m */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | /* End PBXGroup section */ 142 | 143 | /* Begin PBXNativeTarget section */ 144 | 97C146ED1CF9000F007C117D /* Runner */ = { 145 | isa = PBXNativeTarget; 146 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 147 | buildPhases = ( 148 | 11737E40F75246379DD49ECD /* [CP] Check Pods Manifest.lock */, 149 | 9740EEB61CF901F6004384FC /* Run Script */, 150 | 97C146EA1CF9000F007C117D /* Sources */, 151 | 97C146EB1CF9000F007C117D /* Frameworks */, 152 | 97C146EC1CF9000F007C117D /* Resources */, 153 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 154 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 155 | ); 156 | buildRules = ( 157 | ); 158 | dependencies = ( 159 | ); 160 | name = Runner; 161 | productName = Runner; 162 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 163 | productType = "com.apple.product-type.application"; 164 | }; 165 | /* End PBXNativeTarget section */ 166 | 167 | /* Begin PBXProject section */ 168 | 97C146E61CF9000F007C117D /* Project object */ = { 169 | isa = PBXProject; 170 | attributes = { 171 | LastUpgradeCheck = 1020; 172 | ORGANIZATIONNAME = ""; 173 | TargetAttributes = { 174 | 97C146ED1CF9000F007C117D = { 175 | CreatedOnToolsVersion = 7.3.1; 176 | }; 177 | }; 178 | }; 179 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 180 | compatibilityVersion = "Xcode 9.3"; 181 | developmentRegion = en; 182 | hasScannedForEncodings = 0; 183 | knownRegions = ( 184 | en, 185 | Base, 186 | ); 187 | mainGroup = 97C146E51CF9000F007C117D; 188 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 189 | projectDirPath = ""; 190 | projectRoot = ""; 191 | targets = ( 192 | 97C146ED1CF9000F007C117D /* Runner */, 193 | ); 194 | }; 195 | /* End PBXProject section */ 196 | 197 | /* Begin PBXResourcesBuildPhase section */ 198 | 97C146EC1CF9000F007C117D /* Resources */ = { 199 | isa = PBXResourcesBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | D0A116AB274F23FD00D42345 /* AliyunEmasServices-Info.plist in Resources */, 203 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 204 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 205 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 206 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | }; 210 | /* End PBXResourcesBuildPhase section */ 211 | 212 | /* Begin PBXShellScriptBuildPhase section */ 213 | 11737E40F75246379DD49ECD /* [CP] Check Pods Manifest.lock */ = { 214 | isa = PBXShellScriptBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | ); 218 | inputFileListPaths = ( 219 | ); 220 | inputPaths = ( 221 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 222 | "${PODS_ROOT}/Manifest.lock", 223 | ); 224 | name = "[CP] Check Pods Manifest.lock"; 225 | outputFileListPaths = ( 226 | ); 227 | outputPaths = ( 228 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | shellPath = /bin/sh; 232 | 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"; 233 | showEnvVarsInLog = 0; 234 | }; 235 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 236 | isa = PBXShellScriptBuildPhase; 237 | buildActionMask = 2147483647; 238 | files = ( 239 | ); 240 | inputPaths = ( 241 | ); 242 | name = "Thin Binary"; 243 | outputPaths = ( 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | shellPath = /bin/sh; 247 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 248 | }; 249 | 9740EEB61CF901F6004384FC /* Run Script */ = { 250 | isa = PBXShellScriptBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | ); 254 | inputPaths = ( 255 | ); 256 | name = "Run Script"; 257 | outputPaths = ( 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | shellPath = /bin/sh; 261 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 262 | }; 263 | /* End PBXShellScriptBuildPhase section */ 264 | 265 | /* Begin PBXSourcesBuildPhase section */ 266 | 97C146EA1CF9000F007C117D /* Sources */ = { 267 | isa = PBXSourcesBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 271 | 97C146F31CF9000F007C117D /* main.m in Sources */, 272 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXSourcesBuildPhase section */ 277 | 278 | /* Begin PBXVariantGroup section */ 279 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 280 | isa = PBXVariantGroup; 281 | children = ( 282 | 97C146FB1CF9000F007C117D /* Base */, 283 | ); 284 | name = Main.storyboard; 285 | sourceTree = ""; 286 | }; 287 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 288 | isa = PBXVariantGroup; 289 | children = ( 290 | 97C147001CF9000F007C117D /* Base */, 291 | ); 292 | name = LaunchScreen.storyboard; 293 | sourceTree = ""; 294 | }; 295 | /* End PBXVariantGroup section */ 296 | 297 | /* Begin XCBuildConfiguration section */ 298 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 299 | isa = XCBuildConfiguration; 300 | buildSettings = { 301 | ALWAYS_SEARCH_USER_PATHS = NO; 302 | CLANG_ANALYZER_NONNULL = YES; 303 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 304 | CLANG_CXX_LIBRARY = "libc++"; 305 | CLANG_ENABLE_MODULES = YES; 306 | CLANG_ENABLE_OBJC_ARC = YES; 307 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 308 | CLANG_WARN_BOOL_CONVERSION = YES; 309 | CLANG_WARN_COMMA = YES; 310 | CLANG_WARN_CONSTANT_CONVERSION = YES; 311 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 312 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 313 | CLANG_WARN_EMPTY_BODY = YES; 314 | CLANG_WARN_ENUM_CONVERSION = YES; 315 | CLANG_WARN_INFINITE_RECURSION = YES; 316 | CLANG_WARN_INT_CONVERSION = YES; 317 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 318 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 319 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 320 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 321 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 322 | CLANG_WARN_STRICT_PROTOTYPES = YES; 323 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 324 | CLANG_WARN_UNREACHABLE_CODE = YES; 325 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 326 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 327 | COPY_PHASE_STRIP = NO; 328 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 329 | ENABLE_NS_ASSERTIONS = NO; 330 | ENABLE_STRICT_OBJC_MSGSEND = YES; 331 | GCC_C_LANGUAGE_STANDARD = gnu99; 332 | GCC_NO_COMMON_BLOCKS = YES; 333 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 334 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 335 | GCC_WARN_UNDECLARED_SELECTOR = YES; 336 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 337 | GCC_WARN_UNUSED_FUNCTION = YES; 338 | GCC_WARN_UNUSED_VARIABLE = YES; 339 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 340 | MTL_ENABLE_DEBUG_INFO = NO; 341 | SDKROOT = iphoneos; 342 | SUPPORTED_PLATFORMS = iphoneos; 343 | TARGETED_DEVICE_FAMILY = "1,2"; 344 | VALIDATE_PRODUCT = YES; 345 | }; 346 | name = Profile; 347 | }; 348 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 349 | isa = XCBuildConfiguration; 350 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 351 | buildSettings = { 352 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 353 | CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES; 354 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 355 | DEVELOPMENT_TEAM = V924U7H82V; 356 | ENABLE_BITCODE = NO; 357 | INFOPLIST_FILE = Runner/Info.plist; 358 | LD_RUNPATH_SEARCH_PATHS = ( 359 | "$(inherited)", 360 | "@executable_path/Frameworks", 361 | ); 362 | PRODUCT_BUNDLE_IDENTIFIER = com.zkhy.flutterZkhyYj; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | VERSIONING_SYSTEM = "apple-generic"; 365 | }; 366 | name = Profile; 367 | }; 368 | 97C147031CF9000F007C117D /* Debug */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | ALWAYS_SEARCH_USER_PATHS = NO; 372 | CLANG_ANALYZER_NONNULL = YES; 373 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 374 | CLANG_CXX_LIBRARY = "libc++"; 375 | CLANG_ENABLE_MODULES = YES; 376 | CLANG_ENABLE_OBJC_ARC = YES; 377 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 378 | CLANG_WARN_BOOL_CONVERSION = YES; 379 | CLANG_WARN_COMMA = YES; 380 | CLANG_WARN_CONSTANT_CONVERSION = YES; 381 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 382 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 383 | CLANG_WARN_EMPTY_BODY = YES; 384 | CLANG_WARN_ENUM_CONVERSION = YES; 385 | CLANG_WARN_INFINITE_RECURSION = YES; 386 | CLANG_WARN_INT_CONVERSION = YES; 387 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 388 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 389 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 390 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 391 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 392 | CLANG_WARN_STRICT_PROTOTYPES = YES; 393 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 394 | CLANG_WARN_UNREACHABLE_CODE = YES; 395 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 396 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 397 | COPY_PHASE_STRIP = NO; 398 | DEBUG_INFORMATION_FORMAT = dwarf; 399 | ENABLE_STRICT_OBJC_MSGSEND = YES; 400 | ENABLE_TESTABILITY = YES; 401 | GCC_C_LANGUAGE_STANDARD = gnu99; 402 | GCC_DYNAMIC_NO_PIC = NO; 403 | GCC_NO_COMMON_BLOCKS = YES; 404 | GCC_OPTIMIZATION_LEVEL = 0; 405 | GCC_PREPROCESSOR_DEFINITIONS = ( 406 | "DEBUG=1", 407 | "$(inherited)", 408 | ); 409 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 410 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 411 | GCC_WARN_UNDECLARED_SELECTOR = YES; 412 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 413 | GCC_WARN_UNUSED_FUNCTION = YES; 414 | GCC_WARN_UNUSED_VARIABLE = YES; 415 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 416 | MTL_ENABLE_DEBUG_INFO = YES; 417 | ONLY_ACTIVE_ARCH = YES; 418 | SDKROOT = iphoneos; 419 | TARGETED_DEVICE_FAMILY = "1,2"; 420 | }; 421 | name = Debug; 422 | }; 423 | 97C147041CF9000F007C117D /* Release */ = { 424 | isa = XCBuildConfiguration; 425 | buildSettings = { 426 | ALWAYS_SEARCH_USER_PATHS = NO; 427 | CLANG_ANALYZER_NONNULL = YES; 428 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 429 | CLANG_CXX_LIBRARY = "libc++"; 430 | CLANG_ENABLE_MODULES = YES; 431 | CLANG_ENABLE_OBJC_ARC = YES; 432 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 433 | CLANG_WARN_BOOL_CONVERSION = YES; 434 | CLANG_WARN_COMMA = YES; 435 | CLANG_WARN_CONSTANT_CONVERSION = YES; 436 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 437 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 438 | CLANG_WARN_EMPTY_BODY = YES; 439 | CLANG_WARN_ENUM_CONVERSION = YES; 440 | CLANG_WARN_INFINITE_RECURSION = YES; 441 | CLANG_WARN_INT_CONVERSION = YES; 442 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 443 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 444 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 445 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 446 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 447 | CLANG_WARN_STRICT_PROTOTYPES = YES; 448 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 449 | CLANG_WARN_UNREACHABLE_CODE = YES; 450 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 451 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 452 | COPY_PHASE_STRIP = NO; 453 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 454 | ENABLE_NS_ASSERTIONS = NO; 455 | ENABLE_STRICT_OBJC_MSGSEND = YES; 456 | GCC_C_LANGUAGE_STANDARD = gnu99; 457 | GCC_NO_COMMON_BLOCKS = YES; 458 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 459 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 460 | GCC_WARN_UNDECLARED_SELECTOR = YES; 461 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 462 | GCC_WARN_UNUSED_FUNCTION = YES; 463 | GCC_WARN_UNUSED_VARIABLE = YES; 464 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 465 | MTL_ENABLE_DEBUG_INFO = NO; 466 | SDKROOT = iphoneos; 467 | SUPPORTED_PLATFORMS = iphoneos; 468 | TARGETED_DEVICE_FAMILY = "1,2"; 469 | VALIDATE_PRODUCT = YES; 470 | }; 471 | name = Release; 472 | }; 473 | 97C147061CF9000F007C117D /* Debug */ = { 474 | isa = XCBuildConfiguration; 475 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 476 | buildSettings = { 477 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 478 | CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES; 479 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 480 | DEVELOPMENT_TEAM = V924U7H82V; 481 | ENABLE_BITCODE = NO; 482 | INFOPLIST_FILE = Runner/Info.plist; 483 | LD_RUNPATH_SEARCH_PATHS = ( 484 | "$(inherited)", 485 | "@executable_path/Frameworks", 486 | ); 487 | PRODUCT_BUNDLE_IDENTIFIER = com.zkhy.flutterZkhyYj; 488 | PRODUCT_NAME = "$(TARGET_NAME)"; 489 | VERSIONING_SYSTEM = "apple-generic"; 490 | }; 491 | name = Debug; 492 | }; 493 | 97C147071CF9000F007C117D /* Release */ = { 494 | isa = XCBuildConfiguration; 495 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 496 | buildSettings = { 497 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 498 | CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES; 499 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 500 | DEVELOPMENT_TEAM = V924U7H82V; 501 | ENABLE_BITCODE = NO; 502 | INFOPLIST_FILE = Runner/Info.plist; 503 | LD_RUNPATH_SEARCH_PATHS = ( 504 | "$(inherited)", 505 | "@executable_path/Frameworks", 506 | ); 507 | PRODUCT_BUNDLE_IDENTIFIER = com.zkhy.flutterZkhyYj; 508 | PRODUCT_NAME = "$(TARGET_NAME)"; 509 | VERSIONING_SYSTEM = "apple-generic"; 510 | }; 511 | name = Release; 512 | }; 513 | /* End XCBuildConfiguration section */ 514 | 515 | /* Begin XCConfigurationList section */ 516 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 517 | isa = XCConfigurationList; 518 | buildConfigurations = ( 519 | 97C147031CF9000F007C117D /* Debug */, 520 | 97C147041CF9000F007C117D /* Release */, 521 | 249021D3217E4FDB00AE95B9 /* Profile */, 522 | ); 523 | defaultConfigurationIsVisible = 0; 524 | defaultConfigurationName = Release; 525 | }; 526 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 527 | isa = XCConfigurationList; 528 | buildConfigurations = ( 529 | 97C147061CF9000F007C117D /* Debug */, 530 | 97C147071CF9000F007C117D /* Release */, 531 | 249021D4217E4FDB00AE95B9 /* Profile */, 532 | ); 533 | defaultConfigurationIsVisible = 0; 534 | defaultConfigurationName = Release; 535 | }; 536 | /* End XCConfigurationList section */ 537 | }; 538 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 539 | } 540 | --------------------------------------------------------------------------------