Kaynağa Gözat

添加淘宝京东sdk

tags/0.0.1
Weller 4 yıl önce
ebeveyn
işleme
de002d2231
36 değiştirilmiş dosya ile 1053 ekleme ve 193 silme
  1. +8
    -0
      .idea/libraries/Flutter_Plugins.xml
  2. +13
    -0
      .idea/saveactions_settings.xml
  3. +330
    -107
      .idea/workspace.xml
  4. BIN
     
  5. BIN
     
  6. +3
    -1
      example/android/app/src/main/AndroidManifest.xml
  7. +4
    -0
      example/ios/Podfile
  8. +89
    -1
      example/ios/Podfile.lock
  9. +38
    -4
      example/ios/Runner.xcodeproj/project.pbxproj
  10. +9
    -0
      example/ios/Runner/AppDelegate.m
  11. +170
    -0
      example/ios/Runner/Info.plist
  12. BIN
     
  13. BIN
     
  14. BIN
     
  15. BIN
     
  16. BIN
     
  17. BIN
     
  18. BIN
     
  19. BIN
     
  20. BIN
     
  21. +1
    -0
      example/ios/Runner/JDSDK.bundle/safe.jpg
  22. BIN
     
  23. BIN
     
  24. +75
    -13
      example/lib/main.dart
  25. +63
    -0
      example/pubspec.lock
  26. +2
    -0
      example/pubspec.yaml
  27. +1
    -1
      lib/pages/login_page/account/login_account_sk.dart
  28. +0
    -0
      lib/util/extension/color.dart
  29. +9
    -0
      lib/util/extension/string.dart
  30. +30
    -0
      lib/util/taobao/taobao_auth.dart
  31. +86
    -0
      lib/util/taobao/taobao_auth_alert.dart
  32. +22
    -32
      lib/util/taobao/taobao_image_loader.dart
  33. +20
    -30
      lib/zhiying_comm.dart
  34. +63
    -0
      pubspec.lock
  35. +8
    -3
      pubspec.yaml
  36. +9
    -1
      zhiying_comm.iml

+ 8
- 0
.idea/libraries/Flutter_Plugins.xml Dosyayı Görüntüle

@@ -13,6 +13,14 @@
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_macos-0.0.4+3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/path_provider_linux-0.0.1+2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-4.0.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/webview_flutter-0.3.22+1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_alibc-0.0.15" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/jdsdk-0.0.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_web-0.1.3+2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher-5.6.0" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_linux-0.0.1+1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_macos-0.0.1+8" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_windows-0.0.1+1" />
</CLASSES>
<JAVADOC />
<SOURCES />


+ 13
- 0
.idea/saveactions_settings.xml Dosyayı Görüntüle

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="SaveActionSettings">
<option name="actions">
<set>
<option value="activate" />
<option value="organizeImports" />
<option value="reformatChangedCode" />
</set>
</option>
<option name="configurationPath" value="" />
</component>
</project>

+ 330
- 107
.idea/workspace.xml Dosyayı Görüntüle

@@ -1,10 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidLogFilters">
<option name="TOOL_WINDOW_CONFIGURED_FILTER" value="Show only selected application" />
</component>
<component name="ChangeListManager">
<list default="true" id="0ff6f366-28dc-4efd-9bca-709f40bc6813" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/OrderDetail@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/back_normal@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/back_selected@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/login@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/message@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/message_have@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/more_normal@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/more_selected@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/recent@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/safe.jpg" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/JDSDK.bundle/search@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/yw_1222_baichuan.jpg" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/util/extension/string.dart" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/util/taobao/taobao_auth.dart" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/util/taobao/taobao_auth_alert.dart" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/OrderDetail@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/back_normal@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/back_selected@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/login@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/message@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/message_have@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/more_normal@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/more_selected@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/recent@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/safe.jpg" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/JDSDK.bundle/search@3x.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/example/ios/Runner/yw_1222_baichuan.jpg" afterDir="false" />
<change afterPath="$PROJECT_DIR$/lib/util/extension/string.dart" afterDir="false" />
<change afterPath="$PROJECT_DIR$/lib/util/taobao/taobao_auth.dart" afterDir="false" />
<change afterPath="$PROJECT_DIR$/lib/util/taobao/taobao_auth_alert.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/libraries/Flutter_Plugins.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/libraries/Flutter_Plugins.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/android/app/src/main/AndroidManifest.xml" beforeDir="false" afterPath="$PROJECT_DIR$/example/android/app/src/main/AndroidManifest.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/.idea/libraries/Flutter_Plugins.xml" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/.idea/libraries/Flutter_Plugins.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/android/app/src/main/AndroidManifest.xml" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/android/app/src/main/AndroidManifest.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Podfile" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Podfile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Podfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Podfile.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner.xcodeproj/project.pbxproj" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner.xcodeproj/project.pbxproj" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/AppDelegate.m" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/AppDelegate.m" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/Info.plist" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Runner/Info.plist" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/lib/main.dart" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/lib/main.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/pubspec.lock" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/pubspec.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/pubspec.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/pubspec.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/pages/login_page/account/login_account_sk.dart" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/pages/login_page/account/login_account_sk.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/util/color.dart" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/util/extension/color.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/util/taobao/taobao_image_loader.dart" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/util/taobao/taobao_image_loader.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/zhiying_comm.dart" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/lib/zhiying_comm.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/pubspec.lock" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/pubspec.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/pubspec.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/pubspec.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/zhiying_comm.iml" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/.symlinks/plugins/zhiying_comm/zhiying_comm.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/Podfile" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/Podfile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/Podfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/Podfile.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/Runner.xcodeproj/project.pbxproj" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/Runner.xcodeproj/project.pbxproj" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/Runner/AppDelegate.m" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/Runner/AppDelegate.m" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/ios/Runner/Info.plist" beforeDir="false" afterPath="$PROJECT_DIR$/example/ios/Runner/Info.plist" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/lib/main.dart" beforeDir="false" afterPath="$PROJECT_DIR$/example/lib/main.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/pubspec.lock" beforeDir="false" afterPath="$PROJECT_DIR$/example/pubspec.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/pubspec.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/example/pubspec.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lib/pages/login_page/account/login_account_sk.dart" beforeDir="false" afterPath="$PROJECT_DIR$/lib/pages/login_page/account/login_account_sk.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lib/util/color.dart" beforeDir="false" afterPath="$PROJECT_DIR$/lib/util/extension/color.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lib/util/taobao/taobao_image_loader.dart" beforeDir="false" afterPath="$PROJECT_DIR$/lib/util/taobao/taobao_image_loader.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lib/zhiying_comm.dart" beforeDir="false" afterPath="$PROJECT_DIR$/lib/zhiying_comm.dart" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pubspec.lock" beforeDir="false" afterPath="$PROJECT_DIR$/pubspec.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pubspec.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/pubspec.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/zhiying_comm.iml" beforeDir="false" afterPath="$PROJECT_DIR$/zhiying_comm.iml" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/.dart_tool/" />
@@ -26,55 +91,44 @@
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/ios/Classes/ZhiyingCommPlugin.m">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="10" selection-start-line="10" selection-end-line="10" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lib/pages/empty_page.dart">
<entry file="file://$PROJECT_DIR$/example/lib/main.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="273">
<caret line="13" selection-start-line="13" selection-end-line="13" />
<state relative-caret-position="412">
<caret line="211" column="37" selection-start-line="211" selection-start-column="37" selection-end-line="211" selection-end-column="37" />
<folding>
<element signature="e#0#39#0" expanded="true" />
<element signature="e#0#30#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/example/lib/main.dart">
<entry file="file://$PROJECT_DIR$/lib/util/extension/color.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="336">
<caret line="16" column="22" selection-start-line="16" selection-start-column="22" selection-end-line="16" selection-end-column="22" />
<state relative-caret-position="355">
<caret line="26" column="2" selection-start-line="26" selection-start-column="2" selection-end-line="26" selection-end-column="2" />
<folding>
<element signature="e#0#39#0" expanded="true" />
<element signature="e#0#1284#0" expanded="true" />
<element signature="e#238#255#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lib/util/widget_factory.dart">
<entry file="file://$PROJECT_DIR$/lib/util/extension/string.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="398">
<caret line="52" column="33" selection-start-line="52" selection-start-column="33" selection-end-line="52" selection-end-column="33" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
<state relative-caret-position="189">
<caret line="9" selection-start-line="9" selection-end-line="9" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/lib/util/router_util.dart">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lib/util/taobao/taobao_auth.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="126">
<caret line="6" column="79" selection-start-line="6" selection-start-column="79" selection-end-line="6" selection-end-column="79" />
<state relative-caret-position="399">
<caret line="19" column="16" selection-start-line="19" selection-start-column="16" selection-end-line="19" selection-end-column="16" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
@@ -83,40 +137,37 @@
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lib/models/user/user_info_model.dart">
<entry file="file://$PROJECT_DIR$/lib/util/taobao/taobao_auth_alert.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="5" column="19" selection-start-line="5" selection-start-column="19" selection-end-line="5" selection-end-column="19" />
<state relative-caret-position="181">
<caret line="65" column="33" selection-start-line="65" selection-start-column="33" selection-end-line="65" selection-end-column="33" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lib/models/user/user_info_model_notifier.dart">
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/packages/flutter/lib/src/services/platform_channel.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="507">
<caret line="37" column="15" selection-start-line="37" selection-start-column="15" selection-end-line="37" selection-end-column="15" />
<state relative-caret-position="233">
<caret line="317" column="25" lean-forward="true" selection-start-line="317" selection-start-column="25" selection-end-line="317" selection-end-column="25" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/lib/util/native_util.dart">
<file pinned="false" current-in-tab="true">
<entry file="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/jdsdk-0.0.1/lib/jdsdk.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="190">
<caret line="46" column="11" selection-start-line="46" selection-start-column="11" selection-end-line="46" selection-end-column="11" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
<state relative-caret-position="150">
<caret line="12" column="3" lean-forward="true" selection-start-line="12" selection-start-column="3" selection-end-line="12" selection-end-column="3" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/packages/flutter/lib/src/widgets/basic.dart">
<entry file="file://$PROJECT_DIR$/pubspec.yaml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="59661">
<caret line="2903" column="8" selection-start-line="2903" selection-start-column="8" selection-end-line="2903" selection-end-column="8" />
<state relative-caret-position="176">
<caret line="59" column="9" selection-start-line="59" selection-start-column="9" selection-end-line="59" selection-end-column="9" />
</state>
</provider>
</entry>
@@ -137,6 +188,7 @@
<find>getUserInfoModel</find>
<find>UserInfoNotifier</find>
<find>naviga</find>
<find>color</find>
</findStrings>
</component>
<component name="Git.Settings">
@@ -145,25 +197,37 @@
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/pubspec.yaml" />
<option value="$PROJECT_DIR$/lib/pages/login_page.dart" />
<option value="$PROJECT_DIR$/lib/util/router_util.dart" />
<option value="$PROJECT_DIR$/lib/util/taobao/taobao_image_loader.dart" />
<option value="$PROJECT_DIR$/example/pubspec.yaml" />
<option value="$PROJECT_DIR$/lib/util/taobao/taobao_auth.dart" />
<option value="$PROJECT_DIR$/example/android/app/src/main/AndroidManifest.xml" />
<option value="$PROJECT_DIR$/lib/zhiying_comm.dart" />
<option value="$PROJECT_DIR$/lib/util/extension/string.dart" />
<option value="$PROJECT_DIR$/lib/util/extension/color.dart" />
<option value="$PROJECT_DIR$/example/lib/main.dart" />
<option value="$PROJECT_DIR$/pubspec.yaml" />
<option value="$PROJECT_DIR$/lib/util/taobao/taobao_auth_alert.dart" />
</list>
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="13" />
<option name="y" value="23" />
<option name="width" value="1907" />
<option name="width" value="2284" />
<option name="height" value="1015" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<ConfirmationsSetting value="2" id="Add" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="PackagesPane" />
<pane id="AndroidView" />
<pane id="ProjectPane">
<subPane>
<expand>
@@ -180,43 +244,32 @@
<item name="zhiying_comm" type="b2602c69:ProjectViewProjectNode" />
<item name="zhiying_comm" type="462c0819:PsiDirectoryNode" />
<item name="lib" type="462c0819:PsiDirectoryNode" />
<item name="models" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="zhiying_comm" type="b2602c69:ProjectViewProjectNode" />
<item name="zhiying_comm" type="462c0819:PsiDirectoryNode" />
<item name="lib" type="462c0819:PsiDirectoryNode" />
<item name="models" type="462c0819:PsiDirectoryNode" />
<item name="user" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="zhiying_comm" type="b2602c69:ProjectViewProjectNode" />
<item name="zhiying_comm" type="462c0819:PsiDirectoryNode" />
<item name="lib" type="462c0819:PsiDirectoryNode" />
<item name="pages" type="462c0819:PsiDirectoryNode" />
<item name="util" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="zhiying_comm" type="b2602c69:ProjectViewProjectNode" />
<item name="zhiying_comm" type="462c0819:PsiDirectoryNode" />
<item name="lib" type="462c0819:PsiDirectoryNode" />
<item name="util" type="462c0819:PsiDirectoryNode" />
<item name="taobao" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="AndroidView" />
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="dart.analysis.tool.window.force.activate" value="false" />
<property name="io.flutter.reload.alreadyRun" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="settings.editor.selected.configurable" value="dart.settings" />
<property name="show.migrate.to.gradle.popup" value="false" />
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/lib/util/extension" />
<recent name="$PROJECT_DIR$/ios/Classes" />
</key>
</component>
@@ -245,10 +298,20 @@
</task>
<servers />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="1920" height="1015" extended-state="6" />
<frame x="1" y="23" width="1920" height="1015" extended-state="6" />
<editor active="true" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2113951" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.20979765" />
<window_info id="Captures" order="1" side_tool="true" />
<window_info id="Structure" order="2" side_tool="true" />
<window_info id="Image Layers" order="3" />
@@ -257,17 +320,17 @@
<window_info id="Resources Explorer" order="6" />
<window_info id="Capture Tool" order="7" />
<window_info id="Favorites" order="8" side_tool="true" />
<window_info anchor="bottom" id="Find" />
<window_info anchor="bottom" id="Messages" weight="0.3296582" />
<window_info anchor="bottom" id="Dart Analysis" order="0" weight="0.37375966" />
<window_info anchor="bottom" id="Run" order="1" />
<window_info anchor="bottom" id="TODO" order="2" />
<window_info anchor="bottom" id="TODO" order="2" weight="0.3296582" />
<window_info anchor="bottom" id="Android Profiler" order="3" show_stripe_button="false" />
<window_info anchor="bottom" id="Logcat" order="4" />
<window_info anchor="bottom" id="Debug" order="5" weight="0.3296582" />
<window_info anchor="bottom" id="Terminal" order="6" />
<window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
<window_info anchor="bottom" id="Logcat" order="4" weight="0.3296582" />
<window_info active="true" anchor="bottom" id="Debug" order="5" sideWeight="0.49946752" visible="true" weight="0.3296582" />
<window_info anchor="bottom" id="Terminal" order="6" weight="0.21940464" />
<window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.5005325" side_tool="true" weight="0.3296582" />
<window_info anchor="bottom" id="Version Control" order="8" />
<window_info anchor="bottom" id="Find" order="9" />
<window_info anchor="bottom" id="Messages" order="10" weight="0.25027564" />
<window_info anchor="right" id="Device File Explorer" order="0" side_tool="true" />
<window_info anchor="right" id="Capture Analysis" order="1" />
<window_info anchor="right" id="Theme Preview" order="2" />
@@ -280,13 +343,6 @@
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/ios/Classes/HairuyiFlutterCommPlugin.h" />
<entry file="file://$PROJECT_DIR$/ios/Classes/HairuyiFlutterCommPlugin.m" />
<entry file="file://$PROJECT_DIR$/lib/zhiying_comm.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="294">
<caret line="14" column="31" selection-start-line="14" selection-start-column="31" selection-end-line="14" selection-end-column="31" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/android/src/main/AndroidManifest.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="63">
@@ -301,6 +357,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/pages/login_page.dart" />
<entry file="file://$PROJECT_DIR$/ios/Classes/ZhiyingCommPlugin.m">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
@@ -308,26 +365,19 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/example/lib/main.dart">
<entry file="file://$PROJECT_DIR$/lib/pages/empty_page.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="336">
<caret line="16" column="22" selection-start-line="16" selection-start-column="22" selection-end-line="16" selection-end-column="22" />
<state relative-caret-position="252">
<caret line="13" selection-start-line="13" selection-end-line="13" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/packages/flutter/lib/src/widgets/basic.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="59661">
<caret line="2903" column="8" selection-start-line="2903" selection-start-column="8" selection-end-line="2903" selection-end-column="8" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/util/widget_factory.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="398">
<state relative-caret-position="1071">
<caret line="52" column="33" selection-start-line="52" selection-start-column="33" selection-end-line="52" selection-end-column="33" />
<folding>
<element signature="e#0#39#0" expanded="true" />
@@ -337,55 +387,228 @@
</entry>
<entry file="file://$PROJECT_DIR$/lib/models/user/user_info_model.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<state relative-caret-position="105">
<caret line="5" column="19" selection-start-line="5" selection-start-column="19" selection-end-line="5" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pubspec.yaml">
<entry file="file://$PROJECT_DIR$/lib/models/user/user_info_model_notifier.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375">
<caret line="26" column="29" selection-start-line="26" selection-start-column="29" selection-end-line="26" selection-end-column="29" />
<state relative-caret-position="651">
<caret line="37" column="15" selection-start-line="37" selection-start-column="15" selection-end-line="37" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/models/user/user_info_model_notifier.dart">
<entry file="file://$PROJECT_DIR$/lib/util/native_util.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="507">
<caret line="37" column="15" selection-start-line="37" selection-start-column="15" selection-end-line="37" selection-end-column="15" />
<state relative-caret-position="903">
<caret line="46" column="11" selection-start-line="46" selection-start-column="11" selection-end-line="46" selection-end-column="11" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/pages/empty_page.dart">
<entry file="file://$PROJECT_DIR$/lib/util/router_util.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="273">
<caret line="13" selection-start-line="13" selection-end-line="13" />
<state relative-caret-position="165">
<caret line="16" column="3" selection-start-line="16" selection-start-column="3" selection-end-line="16" selection-end-column="3" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/util/native_util.dart">
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/packages/flutter/lib/src/widgets/basic.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="185">
<caret line="4588" column="2" selection-start-line="4588" selection-start-column="2" selection-end-line="4588" selection-end-column="2" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/util/taobao/taobao_image_loader.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="67">
<caret line="31" column="21" lean-forward="true" selection-start-line="31" selection-start-column="21" selection-end-line="31" selection-end-column="21" />
<folding>
<element signature="e#0#22#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/packages/flutter/lib/src/material/dialog.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-146">
<caret line="207" column="8" selection-start-line="207" selection-start-column="8" selection-end-line="207" selection-end-column="8" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_alibc-0.0.15/lib/alibc_model.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="190">
<caret line="46" column="11" selection-start-line="46" selection-start-column="11" selection-end-line="46" selection-end-column="11" />
<caret line="54" column="15" selection-start-line="54" selection-start-column="15" selection-end-line="54" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/flutter_alibc-0.0.15/lib/flutter_alibc.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="190">
<caret line="118" column="29" selection-start-line="118" selection-start-column="29" selection-end-line="118" selection-end-column="29" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/example/android/app/src/main/AndroidManifest.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="252">
<caret line="12" column="38" lean-forward="true" selection-start-line="12" selection-start-column="38" selection-end-line="12" selection-end-column="38" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/util/api.dart">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret selection-end-line="1" selection-end-column="34" />
<folding>
<element signature="e#0#39#0" expanded="true" />
<element signature="e#0#30#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/pages/login_page.dart" />
<entry file="file://$PROJECT_DIR$/lib/util/router_util.dart">
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/bin/cache/pkg/sky_engine/lib/core/regexp.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="190">
<caret line="109" column="9" selection-start-line="109" selection-start-column="9" selection-end-line="109" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/packages/flutter/lib/src/material/ink_well.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="232">
<caret line="707" column="2" selection-start-line="707" selection-start-column="2" selection-end-line="707" selection-end-column="2" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/zhiying_comm.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="180">
<caret line="18" column="35" selection-start-line="18" selection-start-column="35" selection-end-line="18" selection-end-column="35" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/bin/cache/pkg/sky_engine/lib/core/int.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="444">
<caret line="357" selection-start-line="357" selection-end-line="357" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/bin/cache/pkg/sky_engine/lib/core/string.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="333">
<caret line="101" column="15" selection-start-line="101" selection-start-column="15" selection-end-line="101" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/bin/cache/pkg/sky_engine/lib/ui/painting.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="185">
<caret line="88" column="6" selection-start-line="88" selection-start-column="6" selection-end-line="88" selection-end-column="6" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/util/extension/color.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="355">
<caret line="26" column="2" selection-start-line="26" selection-start-column="2" selection-end-line="26" selection-end-column="2" />
<folding>
<element signature="e#0#1284#0" expanded="true" />
<element signature="e#238#255#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/dio-3.0.10/lib/src/dio.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="126">
<caret line="6" column="79" selection-start-line="6" selection-start-column="79" selection-end-line="6" selection-end-column="79" />
<state relative-caret-position="214">
<caret line="965" column="6" selection-start-line="965" selection-start-column="6" selection-end-line="965" selection-end-column="6" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/util/extension/string.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="189">
<caret line="9" selection-start-line="9" selection-end-line="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/example/pubspec.yaml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="104">
<caret line="11" column="64" selection-start-line="11" selection-start-column="64" selection-end-line="11" selection-end-column="64" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/example/lib/main.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="412">
<caret line="211" column="37" selection-start-line="211" selection-start-column="37" selection-end-line="211" selection-end-column="37" />
<folding>
<element signature="e#0#30#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/util/taobao/taobao_auth.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="399">
<caret line="19" column="16" selection-start-line="19" selection-start-column="16" selection-end-line="19" selection-end-column="16" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/pubspec.yaml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="176">
<caret line="59" column="9" selection-start-line="59" selection-start-column="9" selection-end-line="59" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/packages/flutter/lib/src/painting/image_provider.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="316">
<caret line="489" lean-forward="true" selection-start-line="489" selection-end-line="489" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/packages/flutter/lib/src/services/asset_bundle.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="127">
<caret line="217" column="26" lean-forward="true" selection-start-line="217" selection-start-column="26" selection-end-line="217" selection-end-column="26" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/lib/util/taobao/taobao_auth_alert.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="181">
<caret line="65" column="33" selection-start-line="65" selection-start-column="33" selection-end-line="65" selection-end-column="33" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../../flutter-sdk/packages/flutter/lib/src/services/platform_channel.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="233">
<caret line="317" column="25" lean-forward="true" selection-start-line="317" selection-start-column="25" selection-end-line="317" selection-end-column="25" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/.pub-cache/hosted/pub.flutter-io.cn/jdsdk-0.0.1/lib/jdsdk.dart">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="12" column="3" lean-forward="true" selection-start-line="12" selection-start-column="3" selection-end-line="12" selection-end-column="3" />
</state>
</provider>
</entry>
</component>
</project>



+ 3
- 1
example/android/app/src/main/AndroidManifest.xml Dosyayı Görüntüle

@@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="cn.zhios.zhiying_comm_example">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
@@ -8,7 +9,8 @@
<application
android:name="io.flutter.app.FlutterApplication"
android:label="zhiying_comm_example"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
tools:replace="android:label">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"


+ 4
- 0
example/ios/Podfile Dosyayı Görüntüle

@@ -1,6 +1,10 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'


source 'http://repo.baichuan-ios.taobao.com/baichuanSDK/AliBCSpecs.git'


# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'



+ 89
- 1
example/ios/Podfile.lock Dosyayı Görüntüle

@@ -1,7 +1,22 @@
PODS:
- AliAuthSDK (1.1.0.41-bc)
- AlibcTradeSDK (4.0.1.6)
- AliLinkPartnerSDK (4.0.0.24)
- BCUserTrack (5.2.0.18-appkeys):
- UTDID
- device_info (0.0.1):
- Flutter
- Flutter (1.0.0)
- flutter_alibc (0.0.1):
- AliAuthSDK (= 1.1.0.41-bc)
- AlibcTradeSDK (= 4.0.1.6)
- AliLinkPartnerSDK (= 4.0.0.24)
- BCUserTrack (= 5.2.0.18-appkeys)
- Flutter
- mtopSDK (= 3.0.0.3-BC)
- securityGuard (= 5.4.191)
- UTDID (= 1.1.0.16)
- WindVane (= 8.5.0.46-bc11)
- flutter_native_image (0.0.1):
- Flutter
- fluttertoast (0.0.2):
@@ -9,6 +24,9 @@ PODS:
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5)
- jdsdk (0.0.1):
- Flutter
- mtopSDK (3.0.0.3-BC)
- package_info (0.0.1):
- Flutter
- path_provider (0.0.1):
@@ -17,6 +35,7 @@ PODS:
- Flutter
- path_provider_macos (0.0.1):
- Flutter
- securityGuard (5.4.191)
- shared_preferences (0.0.1):
- Flutter
- shared_preferences_linux (0.0.1):
@@ -28,14 +47,36 @@ PODS:
- sqflite (0.0.1):
- Flutter
- FMDB (~> 2.7.2)
- url_launcher (0.0.1):
- Flutter
- url_launcher_linux (0.0.1):
- Flutter
- url_launcher_macos (0.0.1):
- Flutter
- url_launcher_web (0.0.1):
- Flutter
- url_launcher_windows (0.0.1):
- Flutter
- UTDID (1.1.0.16)
- webview_flutter (0.0.1):
- Flutter
- WindVane (8.5.0.46-bc11):
- WindVane/Basic (= 8.5.0.46-bc11)
- WindVane/Core (= 8.5.0.46-bc11)
- WindVane/WindVane (= 8.5.0.46-bc11)
- WindVane/Basic (8.5.0.46-bc11)
- WindVane/Core (8.5.0.46-bc11)
- WindVane/WindVane (8.5.0.46-bc11)
- zhiying_comm (0.0.1):
- Flutter

DEPENDENCIES:
- device_info (from `.symlinks/plugins/device_info/ios`)
- Flutter (from `Flutter`)
- flutter_alibc (from `.symlinks/plugins/flutter_alibc/ios`)
- flutter_native_image (from `.symlinks/plugins/flutter_native_image/ios`)
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
- jdsdk (from `.symlinks/plugins/jdsdk/ios`)
- package_info (from `.symlinks/plugins/package_info/ios`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`)
@@ -45,9 +86,24 @@ DEPENDENCIES:
- shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
- shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
- sqflite (from `.symlinks/plugins/sqflite/ios`)
- url_launcher (from `.symlinks/plugins/url_launcher/ios`)
- url_launcher_linux (from `.symlinks/plugins/url_launcher_linux/ios`)
- url_launcher_macos (from `.symlinks/plugins/url_launcher_macos/ios`)
- url_launcher_web (from `.symlinks/plugins/url_launcher_web/ios`)
- url_launcher_windows (from `.symlinks/plugins/url_launcher_windows/ios`)
- webview_flutter (from `.symlinks/plugins/webview_flutter/ios`)
- zhiying_comm (from `.symlinks/plugins/zhiying_comm/ios`)

SPEC REPOS:
http://repo.baichuan-ios.taobao.com/baichuanSDK/AliBCSpecs.git:
- AliAuthSDK
- AlibcTradeSDK
- AliLinkPartnerSDK
- BCUserTrack
- mtopSDK
- securityGuard
- UTDID
- WindVane
trunk:
- FMDB

@@ -56,10 +112,14 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/device_info/ios"
Flutter:
:path: Flutter
flutter_alibc:
:path: ".symlinks/plugins/flutter_alibc/ios"
flutter_native_image:
:path: ".symlinks/plugins/flutter_native_image/ios"
fluttertoast:
:path: ".symlinks/plugins/fluttertoast/ios"
jdsdk:
:path: ".symlinks/plugins/jdsdk/ios"
package_info:
:path: ".symlinks/plugins/package_info/ios"
path_provider:
@@ -78,26 +138,54 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/shared_preferences_web/ios"
sqflite:
:path: ".symlinks/plugins/sqflite/ios"
url_launcher:
:path: ".symlinks/plugins/url_launcher/ios"
url_launcher_linux:
:path: ".symlinks/plugins/url_launcher_linux/ios"
url_launcher_macos:
:path: ".symlinks/plugins/url_launcher_macos/ios"
url_launcher_web:
:path: ".symlinks/plugins/url_launcher_web/ios"
url_launcher_windows:
:path: ".symlinks/plugins/url_launcher_windows/ios"
webview_flutter:
:path: ".symlinks/plugins/webview_flutter/ios"
zhiying_comm:
:path: ".symlinks/plugins/zhiying_comm/ios"

SPEC CHECKSUMS:
AliAuthSDK: 7018e8f3c8be3382e60f69d3b517c7de34c351e0
AlibcTradeSDK: 9a3e7af6cd648dd1f85684e82694c213fe48dad2
AliLinkPartnerSDK: c5778cdfdcee7bfe342238d39a77766184d36a46
BCUserTrack: 49251c6fb7c65cbbc221a492bbd3f3e142f1fb0f
device_info: d7d233b645a32c40dfdc212de5cf646ca482f175
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
flutter_alibc: 0e2a29e7c1de759672d87a260051240d209964b9
flutter_native_image: 9c0b7451838484458e5b0fae007b86a4c2d4bdfe
fluttertoast: b644586ef3b16f67fae9a1f8754cef6b2d6b634b
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
jdsdk: 2ca38c7e3a2dfb0f3641425f8fd1e8d20357693f
mtopSDK: d6fdf81730342a69be920b576541c7bb81a683d5
package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4
path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
securityGuard: 9c04c44a3b663f36e15064042abfc107fa07133c
shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
shared_preferences_linux: afefbfe8d921e207f01ede8b60373d9e3b566b78
shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
sqflite: 4001a31ff81d210346b500c55b17f4d6c7589dd0
url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
url_launcher_linux: ac237cb7a8058736e4aae38bdbcc748a4b394cc0
url_launcher_macos: fd7894421cd39320dce5f292fc99ea9270b2a313
url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c
url_launcher_windows: 683d7c283894db8d1914d3ab2223b20cc1ad95d5
UTDID: c28855683c5ea2e77e597cb14609328f7d470d6e
webview_flutter: d2b4d6c66968ad042ad94cbb791f5b72b4678a96
WindVane: 56e096abae757397ccd3accb66a959f3ffcbf949
zhiying_comm: 0daef4a480f4f4dbea3e11b615f3264aafea924b

PODFILE CHECKSUM: 3dbe063e9c90a5d7c9e4e76e70a821b9e2c1d271
PODFILE CHECKSUM: bbd9f27e9df97ed99010aad8f8fbdce989f60e65

COCOAPODS: 1.9.3

+ 38
- 4
example/ios/Runner.xcodeproj/project.pbxproj Dosyayı Görüntüle

@@ -19,6 +19,8 @@
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
9F8951A62514ED8900DF5620 /* yw_1222_baichuan.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 9F8951A42514ED8900DF5620 /* yw_1222_baichuan.jpg */; };
9F8951A72514ED8900DF5620 /* JDSDK.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 9F8951A52514ED8900DF5620 /* JDSDK.bundle */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
@@ -56,6 +58,8 @@
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9F8951A42514ED8900DF5620 /* yw_1222_baichuan.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = yw_1222_baichuan.jpg; sourceTree = "<group>"; };
9F8951A52514ED8900DF5620 /* JDSDK.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = JDSDK.bundle; sourceTree = "<group>"; };
F1628CBC8D15F3FA852FDD72 /* 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 = "<group>"; };
/* End PBXFileReference section */

@@ -80,7 +84,6 @@
81DAE47BE752C6766DCC2F7E /* Pods-Runner.release.xcconfig */,
F1628CBC8D15F3FA852FDD72 /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
@@ -119,6 +122,8 @@
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
9F8951A52514ED8900DF5620 /* JDSDK.bundle */,
9F8951A42514ED8900DF5620 /* yw_1222_baichuan.jpg */,
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
97C146FA1CF9000F007C117D /* Main.storyboard */,
@@ -163,6 +168,7 @@
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
59F5B2BD0CC9263415C8DC83 /* [CP] Embed Pods Frameworks */,
401CE359583B5089899EB6ED /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@@ -184,6 +190,8 @@
TargetAttributes = {
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = 3EC5G67BTK;
ProvisioningStyle = Manual;
};
};
};
@@ -210,9 +218,11 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9F8951A72514ED8900DF5620 /* JDSDK.bundle in Resources */,
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
9F8951A62514ED8900DF5620 /* yw_1222_baichuan.jpg in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -234,6 +244,21 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
};
401CE359583B5089899EB6ED /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
showEnvVarsInLog = 0;
};
59F5B2BD0CC9263415C8DC83 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -376,7 +401,9 @@
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 3EC5G67BTK;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -388,8 +415,9 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = cn.zhios.zhiyingCommExample;
PRODUCT_BUNDLE_IDENTIFIER = com.fnuo123.newhairuyi;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "com.fnuo123.newhairuyi Development";
VERSIONING_SYSTEM = "apple-generic";
};
name = Profile;
@@ -506,7 +534,9 @@
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 3EC5G67BTK;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -518,8 +548,9 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = cn.zhios.zhiyingCommExample;
PRODUCT_BUNDLE_IDENTIFIER = com.fnuo123.newhairuyi;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "com.fnuo123.newhairuyi Development";
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
@@ -529,7 +560,9 @@
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 3EC5G67BTK;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -541,8 +574,9 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = cn.zhios.zhiyingCommExample;
PRODUCT_BUNDLE_IDENTIFIER = com.fnuo123.newhairuyi;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "com.fnuo123.newhairuyi Development";
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;


+ 9
- 0
example/ios/Runner/AppDelegate.m Dosyayı Görüntüle

@@ -2,12 +2,21 @@
#import "GeneratedPluginRegistrant.h"
#import <zhiying_comm/ZhiyingCommNative.h>

#import <jdsdk/JDKeplerSDK.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[ZhiyingCommNative regist: self];
[GeneratedPluginRegistrant registerWithRegistry:self];
// [[KeplerApiManager sharedKPService]asyncInitSdk:@"9fc3dec00b9b40cc950dfba5262cd6d3" secretKey:@"f785613e5fd54a129d0f0359a4e25c23" sucessCallback:^(){
// NSLog (@"京东初始化成功");
// }failedCallback:^(NSError *error){
// NSLog (@"京东初始化失败");
// }];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}



+ 170
- 0
example/ios/Runner/Info.plist Dosyayı Görüntüle

@@ -18,10 +18,178 @@
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>WBkey</string>
<key>CFBundleURLSchemes</key>
<array>
<string>wb2180230632</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>QQ10JZ</string>
<key>CFBundleURLSchemes</key>
<array>
<string>tencent1105605716</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>WBSecret</string>
<key>CFBundleURLSchemes</key>
<array>
<string>sina.15b5959a00eb2b91d1654f357d8a798b</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>QQ16JZ</string>
<key>CFBundleURLSchemes</key>
<array>
<string>QQ41e63454</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>tb</string>
<key>CFBundleURLSchemes</key>
<array>
<string>tbopen23430346</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>weixin</string>
<key>CFBundleURLSchemes</key>
<array>
<string>wx7f995405e40245d7</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>JD</string>
<key>CFBundleURLSchemes</key>
<array>
<string>sdkback9fc3dec00b9b40cc950dfba5262cd6d3</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>kd920070801.opendev.fleetingpower.com</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>kd920070801.open.fleetingpower.com</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>otpauth</string>
<string>iosamap</string>
<string>baidumap</string>
<string>vipshop</string>
<string>jdlogin</string>
<string>openapp</string>
<string>openapp.jdmobile</string>
<string>pinduoduo</string>
<string>wechat</string>
<string>tbopen</string>
<string>tmall</string>
<string>taobao</string>
<string>weixin</string>
<string>weixinULAPI</string>
<string>sinaweibohd</string>
<string>sinaweibo</string>
<string>sinaweibosso</string>
<string>weibosdk</string>
<string>weibosdk2.5</string>
<string>weibosdk2</string>
<string>mqqapi</string>
<string>mqq</string>
<string>mqqOpensdkSSoLogin</string>
<string>mqqconnect</string>
<string>mqqopensdkdataline</string>
<string>mqqopensdkgrouptribeshare</string>
<string>mqqopensdkfriend</string>
<string>mqqopensdkapi</string>
<string>mqqopensdkapiV2</string>
<string>mqqopensdkapiV3</string>
<string>mqzoneopensdk</string>
<string>wtloginmqq</string>
<string>wtloginmqq2</string>
<string>mqqwpa</string>
<string>mqzone</string>
<string>mqzonev2</string>
<string>mqzoneshare</string>
<string>wtloginqzone</string>
<string>mqzonewx</string>
<string>mqzoneopensdkapiV2</string>
<string>mqqopensdkapiV4</string>
<string>mqzoneopensdkapi19</string>
<string>mqzoneopensdkapi</string>
<string>mqqbrowser</string>
<string>mttbrowser</string>
<string>renrenios</string>
<string>renrenapi</string>
<string>renren</string>
<string>renreniphone</string>
<string>laiwangsso</string>
<string>yixin</string>
<string>yixinopenapi</string>
<string>instagram</string>
<string>whatsapp</string>
<string>line</string>
<string>fbapi</string>
<string>fb</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
<string>alipays</string>
<string>alipay</string>
<string>kaola</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
@@ -41,5 +209,7 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>io.flutter.embedded_views_preview</key>
<string>YES</string>
</dict>
</plist>










+ 1
- 0
example/ios/Runner/JDSDK.bundle/safe.jpg Dosyayı Görüntüle

@@ -0,0 +1 @@
5nu<;+FJp.



+ 75
- 13
example/lib/main.dart Dosyayı Görüntüle

@@ -1,8 +1,9 @@
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:flutter_alibc/flutter_alibc.dart';
import 'package:jdsdk/jdsdk.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:zhiying_comm/zhiying_comm.dart';
// import 'package:zhiying_comm_example/device_info_page.dart';
// import 'package:zhiying_comm_example/log_util.dart';
// import 'package:zhiying_comm_example/package_info_page.dart';

void main() => runApp(MyApp());

@@ -14,6 +15,13 @@ class MyApp extends StatefulWidget {
class _MyAppState extends State<MyApp> {
@override
void initState() {
Jdsdk.init(appKey: '9fc3dec00b9b40cc950dfba5262cd6d3',
appSecret: 'f785613e5fd54a129d0f0359a4e25c23').then((result) {
Logger.debug('京东初始化:${result.toString()}');
});
FlutterAlibc.initAlibc(version: "", appName: "").then((result) {
Logger.debug('${result.errorCode} ${result.errorMessage}');
});
super.initState();
}

@@ -33,7 +41,7 @@ class _MyAppState extends State<MyApp> {
class HomePage extends StatelessWidget {
netPost() async {
dynamic result =
await NetUtil.post('/api/v1/rec/featured?page=1', params: null);
await NetUtil.post('/api/v1/rec/featured?page=1', params: null);
print("result === ${result?.toString()}");
}

@@ -41,9 +49,8 @@ class HomePage extends StatelessWidget {
Widget build(BuildContext context) {
return SingleChildScrollView(
child: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
child: Wrap(
spacing: 10,
children: <Widget>[
RaisedButton(
onPressed: () {
@@ -74,12 +81,12 @@ class HomePage extends StatelessWidget {
onPressed: () {
NetUtil.request('/api/v1/rec/featured?page=1', params: null,
onError: (msg) {
print('onERROR = ${msg?.toString() ?? 'onError'}');
}, onSuccess: (json) {
print('onSuccess = ${json?.toString() ?? 'onSuccess'}');
}, onCache: (json) {
print('onCache = ${json?.toString() ?? 'onCache'}');
});
print('onERROR = ${msg?.toString() ?? 'onError'}');
}, onSuccess: (json) {
print('onSuccess = ${json?.toString() ?? 'onSuccess'}');
}, onCache: (json) {
print('onCache = ${json?.toString() ?? 'onCache'}');
});
},
child: Text('网络异步请求(带缓存)'),
),
@@ -149,6 +156,61 @@ class HomePage extends StatelessWidget {
},
child: Text('抓淘宝图片'),
),
RaisedButton(
onPressed: () {
TaobaoAuth.auth(context);
},
child: Text('淘宝授权'),
),
RaisedButton(
onPressed: () {
//
Dio dio = Dio();
dio.get(
'http://www.hairuyi.com/?mod=appapi&act=gotojingdong&gid=60291609161&yhq_url=http%3A%2F%2Fcoupon.m.jd.com%2Fcoupons%2Fshow.action%3Fkey%3Dd97e1472a8a24c39a9463dbe72b3fa32%26roleId%3D38088450%26to%3Ditem.jd.com%2F60291609161.html')
.then((value) {
Logger.debug(value.realUri.toString());
});
},
child: Text('获取重定向地址'),
),
RaisedButton(
onPressed: () {
Jdsdk.openUrl(
url: 'http://www.hairuyi.com/?mod=appapi&act=gotojingdong&gid=60291609161&yhq_url=http%3A%2F%2Fcoupon.m.jd.com%2Fcoupons%2Fshow.action%3Fkey%3Dd97e1472a8a24c39a9463dbe72b3fa32%26roleId%3D38088450%26to%3Ditem.jd.com%2F60291609161.html');
},
child: Text('打开京东详情'),
),
RaisedButton(
onPressed: () async {
String detailUrl = 'http://www.hairuyi.com/?mod=appapi&act=gotojingdong&gid=60291609161&yhq_url=http%3A%2F%2Fcoupon.m.jd.com%2Fcoupons%2Fshow.action%3Fkey%3Dd97e1472a8a24c39a9463dbe72b3fa32%26roleId%3D38088450%26to%3Ditem.jd.com%2F60291609161.html';
String baseUrl = detailUrl.getBaseUrl();
if (!baseUrl.contains('jd.com')) {
Dio dio = Dio();
var responds = await dio.get(detailUrl);
detailUrl = responds.realUri.toString();
}
Logger.debug(detailUrl);
Jdsdk.openUrl(
url
:
detailUrl
);
},
child: Text('嗨如意转链打开京东'),
),
RaisedButton(
onPressed: () async {
const url = 'weixin://';

if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
},
child: Text('url scheme打开app'),
),
],
),
),


+ 63
- 0
example/pubspec.lock Dosyayı Görüntüle

@@ -237,6 +237,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_alibc:
dependency: "direct dev"
description:
name: flutter_alibc
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.15"
flutter_bloc:
dependency: transitive
description:
@@ -345,6 +352,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.3.4"
jdsdk:
dependency: transitive
description:
name: jdsdk
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.1"
js:
dependency: transitive
description:
@@ -485,6 +499,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.2.1"
platform_detect:
dependency: transitive
description:
name: platform_detect
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.4.0"
plugin_platform_interface:
dependency: transitive
description:
@@ -693,6 +714,48 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.6"
url_launcher:
dependency: transitive
description:
name: url_launcher
url: "https://pub.flutter-io.cn"
source: hosted
version: "5.6.0"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.1+1"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.1+8"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.8"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.3+2"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.1+1"
uuid:
dependency: transitive
description:


+ 2
- 0
example/pubspec.yaml Dosyayı Görüntüle

@@ -20,6 +20,8 @@ dev_dependencies:
zhiying_comm:
path: ../

flutter_alibc: ^0.0.15

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec



+ 1
- 1
lib/pages/login_page/account/login_account_sk.dart Dosyayı Görüntüle

@@ -1,6 +1,6 @@
import 'package:shimmer/shimmer.dart';
import 'package:flutter/material.dart';
import 'package:zhiying_comm/util/color.dart';
import 'package:zhiying_comm/util/extension/color.dart';

///
/// 登陆页面的骨架屏


lib/util/color.dart → lib/util/extension/color.dart Dosyayı Görüntüle


+ 9
- 0
lib/util/extension/string.dart Dosyayı Görüntüle

@@ -0,0 +1,9 @@
extension RegString on String {
// 正则匹配获取基础url,返回如:https://www.xyz.com
String getBaseUrl() {
RegExp exp = new RegExp(
"^((http://)|(https://))?([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}(/)");

return exp.stringMatch(this);
}
}

+ 30
- 0
lib/util/taobao/taobao_auth.dart Dosyayı Görüntüle

@@ -0,0 +1,30 @@
import 'package:flutter/material.dart';
import 'package:flutter_alibc/alibc_model.dart';
import 'package:flutter_alibc/flutter_alibc.dart';
import 'package:zhiying_comm/util/taobao/taobao_auth_alert.dart';
import 'package:zhiying_comm/zhiying_comm.dart';

class TaobaoAuth {
// 淘宝授权
static auth(BuildContext context) async {
bool isConfirm = await showDialog(
context: context,
builder: (BuildContext context) {
return TaobaoAuthAlert();
});
if (isConfirm != null && isConfirm == true) {
TradeResult result = await FlutterAlibc.openByUrl(
url:
'https://uland.taobao.com/coupon/edetail?e=3HzI2W1Beb8GQASttHIRqXnNjWpDy9mhXwL7S63FIwYKZE0HebgG45okpD6aY36atPRANf7tQQAMfuX5VbbjJDEhJpUUrcnYl02IO45oPAVVa4HVocdYY3Y9x3IctcCWLspxGy3zBjY8IeN8lvhRA2lzrR4%2BfrcbCbBkjRdlgvJ932VMXbyLuXFtBQJOD%2BAi1xjdOwSZLqE%3D&traceId=0bb623e116004208111058861eea6c&relationId=528397833&union_lens=lensId:TAPI@1600420811@0b8fdc87_0dbb_174a0839173_b4fc@01&relationId=528397833');
// TradeResult result = await FlutterAlibc.openByUrl(
// url:
// 'http://www.izhim.com/comm/tb_callback.php?_ctrl=domain&domain_return_url=aHR0cDovL3d3dy5oYWlydXlpLmNvbS9jb21tL3RicmVkaXJlY3QucGhwP3RyYWNrX2lkPQ%3D%3D&domain_state=r_NTEwMw');
Logger.debug('${result.errorCode} ${result.errorMessage} ');
}
}

// 返回是否授权
static Future<bool> isAuth() {
return Future.delayed(Duration.zero, () => false);
}
}

+ 86
- 0
lib/util/taobao/taobao_auth_alert.dart Dosyayı Görüntüle

@@ -0,0 +1,86 @@
import 'package:flutter/material.dart';

class TaobaoAuthAlert extends StatelessWidget {
@override
Widget build(BuildContext context) {
return GestureDetector(
child: Scaffold(
backgroundColor: Colors.transparent,
body: Center(
child: GestureDetector(
child: Container(
padding: EdgeInsets.all(20),
width: 230,
height: 226,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(13),
),
child: Column(
children: <Widget>[
Container(
width: 62,
height: 62,
child: Image.asset(
'assets/images/icon_taobao.png',
package: 'zhiying_comm',
),
),
Padding(
padding: EdgeInsets.only(top: 10, bottom: 4),
child: Text(
'请完成淘宝授权',
style: TextStyle(
color: Color(0xff333333),
fontSize: 15,
),
)),
Expanded(
child: Text(
'淘宝授权后下单或分享商品\n可以获得收益哦',
textAlign: TextAlign.center,
style: TextStyle(
color: Color(0xff999999),
fontSize: 12,
),
),
),
GestureDetector(
child: Container(
width: 180,
height: 34,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Color(0xFFFF8E00),
Color(0xFFFF5500),
],
),
borderRadius: BorderRadius.circular(17),
),
child: Center(
child: Text(
'前往授权',
style: TextStyle(fontSize: 12, color: Colors.white),
),
),
),
onTap: () {
Navigator.pop(context, true);
},
),
],
),
),
onTap: () {},
),
),
),
onTap: () {
Navigator.pop(context);
},
);
}
}

+ 22
- 32
lib/util/taobao/taobao_image_loader.dart Dosyayı Görüntüle

@@ -29,38 +29,28 @@ class _TaobaoImageLoaderState extends State<TaobaoImageLoader> {

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('抓取淘宝详情图'),
),
// We're using a Builder here so we have a context that is below the Scaffold
// to allow calling Scaffold.of(context) so we can show a snackbar.
body: Builder(builder: (BuildContext context) {
return WebView(
initialUrl: widget.url,
javascriptMode: JavascriptMode.unrestricted,
onWebViewCreated: (WebViewController webViewController) {
_webViewController = webViewController;
},
// TODO(iskakaushik): Remove this when collection literals makes it to stable.
// ignore: prefer_collection_literals
javascriptChannels: <JavascriptChannel>[
_imageLoaderJavascriptChannel(context),
].toSet(),
navigationDelegate: (NavigationRequest request) {
print('allowing navigation to $request');
return NavigationDecision.navigate;
},
onPageStarted: (String url) {
print('Page started loading: $url');
},
onPageFinished: (String url) {
_loadImages();
},
gestureNavigationEnabled: true,
);
}),
);
return WebView(
initialUrl: widget.url,
javascriptMode: JavascriptMode.unrestricted,
onWebViewCreated: (WebViewController webViewController) {
_webViewController = webViewController;
},
javascriptChannels: <JavascriptChannel>[
_imageLoaderJavascriptChannel(context),
].toSet(),
navigationDelegate: (NavigationRequest request) {
print('allowing navigation to $request');
return NavigationDecision.navigate;
},
onPageStarted: (String url) {
print('Page started loading: $url');
},
onPageFinished: (String url) {
_loadImages();
},
gestureNavigationEnabled: true,
);

}

void _loadImages() {


+ 20
- 30
lib/zhiying_comm.dart Dosyayı Görüntüle

@@ -1,41 +1,31 @@
library zhiying_comm;

// pages
export 'pages/empty_page.dart';
export 'package:flutter_screenutil/flutter_screenutil.dart';

export 'util/widget_creater.dart';
export 'models/base/skip_model.dart';
export 'models/base/widget_model.dart';
export 'models/user/user_info_model.dart';
export 'models/user/user_info_model.dart';
export 'models/user/user_info_model_notifier.dart';
export 'models/user/user_info_model_notifier.dart';
export 'native/native_router.dart';
export 'pages/empty_page.dart';
export 'util/api.dart';
export 'util/defalut_widget_creater.dart';

// utils
export 'util/color.dart';
export 'util/empty_util.dart';
export 'util/encode_util.dart';
export 'util/enum_util.dart';
export 'util/extension/color.dart';
export 'util/extension/string.dart';
export 'util/global_config.dart';
export 'util/log/let_log.dart';
export 'util/native_util.dart';
export 'util/navigator_observer.dart';
export 'util/net_util.dart';
export 'util/page_factory.dart';
export 'util/widget_factory.dart';
export 'util/router_util.dart';
export 'util/log/let_log.dart';
export 'util/empty_util.dart';
export 'util/global_config.dart';
export 'util/api.dart';

export 'util/taobao/taobao_auth.dart';
export 'util/taobao/taobao_image_loader.dart';

// 用户信息
export 'models/user/user_info_model.dart';
export 'models/user/user_info_model_notifier.dart';

// 屏幕适配
export 'package:flutter_screenutil/flutter_screenutil.dart';

export 'util/enum_util.dart';
export 'util/encode_util.dart';

// native
export 'native/native_router.dart';

// model
export 'models/base/widget_model.dart';
export 'models/base/skip_model.dart';
export 'models/user/user_info_model.dart';
export 'models/user/user_info_model_notifier.dart';
export 'util/widget_creater.dart';
export 'util/widget_factory.dart';

+ 63
- 0
pubspec.lock Dosyayı Görüntüle

@@ -230,6 +230,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_alibc:
dependency: "direct main"
description:
name: flutter_alibc
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.15"
flutter_bloc:
dependency: "direct main"
description:
@@ -338,6 +345,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.3.4"
jdsdk:
dependency: "direct main"
description:
name: jdsdk
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.1"
js:
dependency: transitive
description:
@@ -478,6 +492,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.2.1"
platform_detect:
dependency: transitive
description:
name: platform_detect
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.4.0"
plugin_platform_interface:
dependency: transitive
description:
@@ -686,6 +707,48 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.6"
url_launcher:
dependency: "direct main"
description:
name: url_launcher
url: "https://pub.flutter-io.cn"
source: hosted
version: "5.6.0"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.1+1"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.1+8"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.8"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.3+2"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.1+1"
uuid:
dependency: transitive
description:


+ 8
- 3
pubspec.yaml Dosyayı Görüntüle

@@ -32,12 +32,17 @@ dependencies:
# 骨架屏
shimmer: ^1.1.1
webview_flutter: ^0.3.22+1
# 京东sdk
jdsdk: ^0.0.1
flutter_alibc: ^0.0.15
url_launcher: ^5.6.0


dev_dependencies:
flutter_test:
sdk: flutter


# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

@@ -52,9 +57,9 @@ flutter:
pluginClass: ZhiyingCommPlugin

# To add assets to your plugin package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
assets:
- assets/images/icon_taobao.png
#
# For details regarding assets in packages, see
# https://flutter.dev/assets-and-images/#from-packages


+ 9
- 1
zhiying_comm.iml Dosyayı Görüntüle

@@ -14,13 +14,21 @@
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/fluttertoast/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/fluttertoast/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/fluttertoast/build" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/fluttertoast/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/fluttertoast/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/fluttertoast/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/build" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/Flutter/App.framework/flutter_assets/packages" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/.symlinks/plugins/fluttertoast/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/.symlinks/plugins/fluttertoast/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/.symlinks/plugins/fluttertoast/build" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/.symlinks/plugins/fluttertoast/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/.symlinks/plugins/fluttertoast/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/.symlinks/plugins/zhiying_comm/example/ios/.symlinks/plugins/fluttertoast/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/ios/Flutter/App.framework/flutter_assets/packages" />
</content>
<orderEntry type="sourceFolder" forTests="false" />


Yükleniyor…
İptal
Kaydet