Code Monkey home page Code Monkey logo

new-unity-for-sharesdk's Introduction

new-unity-for-sharesdk's People

Contributors

1019238091 avatar alexyuyxj avatar anplex avatar dangerousdon avatar jinyi-coder avatar jychenx avatar moblarry avatar o2space avatar vhbvb avatar zengyimou avatar zhangbrook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

new-unity-for-sharesdk's Issues

iOS 下构建时默认全部拷贝用不到的平台开发包到 XCode 工程

问题描述

ShareSDK 中只选中支持 QQ、微信、微博三个平台,但默认所有的平台连接器和SDK都会被拷贝,分别被拷贝到 SDK/ShareSDK/Support/PlatformConnector, SDK/ShareSDK/Support/PlatformSDK 下面。合计大小有 250MB 以上。

解决方案

ShareSDK/Plugins/iOS/MOBTool/iOS/MOBAutoPackage/Editor/MOBPostProcessBuild.cs 89 行改为 bool hasMobFramework = true;
Windows 下导出 XCode 工程后,SDK/ShareSDK/Support/PlatformConnector, SDK/ShareSDK/Support/PlatformSDK 就分别只剩下 QQ, 微信, 微博的 SDK 框架了。总大小约 16MB。
这些平台框架所共同依赖的 MOBFoundation.framework 也被正确拷贝到 SDK/Required 下面了。

尚存问题

上述解决方案,在 MacOS 和 Linux 下不能正确输出 XCode 工程,SDK/Required/MOBFoundation.framework 会缺失。猜测是 MacOS/Linux 下文件系统路径分隔符为 / 与 Windows 路径分隔符 \\ 不同导致的,或者是因为文件系统区分大小写的问题。
这问题比较严重,导致无法在 MacOS 正常开发,且使得 CI 流程失败。
请检查 ShareSDK/Plugins/iOS/MOBTool/iOS/MOBAutoPackage/Editor/MOBPostProcessBuild.cs 文件中的 framework 拷贝逻辑尽快修正该问题。

unity在win10 上导出 ios xcode工程报错,SDK目录不能生成

系统 win10
unity 2018.4.3

DirectoryNotFoundException: Could not find a part of the path 'D:\Projects\DnGv2\SDK\Required'.

详细错误信息
DirectoryNotFoundException: Could not find a part of the path 'D:\Projects\DnGv2\SDK\Required'.
System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at :0)
System.IO.FileSystemEnumerableIterator1[TSource].HandleError (System.Int32 hr, System.String path) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0) System.IO.FileSystemEnumerableIterator1[TSource].CommonInit () (at :0)
System.IO.FileSystemEnumerableIterator1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler1[TSource] resultHandler, System.Boolean checkHost) (at :0)
System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (System.String path, System.String originalUserPath, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) (at :0)
System.IO.Directory.InternalGetFileDirectoryNames (System.String path, System.String userPathOriginal, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) (at :0)
System.IO.Directory.InternalGetDirectories (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) (at :0)
System.IO.Directory.GetDirectories (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) (at :0)
MOBPostProcessBuild.AddFramework (System.String secondFilePath, System.String xcodeTargetPath, System.String xcodeTargetGuid, cn.mob.unity3d.sdkporter.MOBPathModel pathModel, UnityEditor.iOS.Xcode.PBXProject xcodeProj, System.Boolean& hasMobFramework) (at Assets/Plugins/iOS/MOBTool/iOS/MOBAutoPackage/Editor/MOBPostProcessBuild.cs:330)
MOBPostProcessBuild.onPostProcessBuild (UnityEditor.BuildTarget target, System.String targetPath) (at Assets/Plugins/iOS/MOBTool/iOS/MOBAutoPackage/Editor/MOBPostProcessBuild.cs:72)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at :0)
UnityEditor.Build.BuildPipelineInterfaces+AttributeCallbackWrapper.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:158)
UnityEditor.Build.BuildPipelineInterfaces+c__AnonStorey2.<>m__1 (UnityEditor.Build.IPostprocessBuildWithReport bpp) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:398)
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List1[T] oneInterfaces, System.Action1[T] invocationOne, System.Collections.Generic.List1[T] twoInterfaces, System.Action1[T] invocationTwo, System.Boolean exitOnFailure) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:356)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

建议去掉Library

这个东西每个平台和每个版本都不一样,不需要传到git,而且打开unity会根据平台与版本自动生成。不然每次更新太庞大,要发疯了。

请支持Unity2019LTS

Unity2019LTS已经出了一个多月,我目前使用的是Unity 2019.4.3f1,打开这个demo工程,控制台直接报相应API不支持的错。估计升级到2019LTS,有许多API变动,插件也可能工作不正常。请确保支持Unity 2019LTS。

ShareSDKForUnity调用抖音失败

你好,我在使用时不能正常与抖音交互,我咨询了你们的微信客服,说是目前抖音API升级了,还未进行适配,请问大概什么时候能调整更新?谢谢!

Kakaotalk typo issue (rawData -> rawata)

When i try to social login with kakaotalk, and call to GetUserInfo.
i received NULL message.

i debugged few miniutes, i found some typo issue.

(rawData -> rawata)
/ShareSDK/Editor/SDK/ShareSDK/Support/Required/ShareSDK.bundle/ScriptCore/platforms/Kakao.mobjs

please check.

与最新版本的Unity支付存在冲突。

最近使用unity支付的项目,总是弹出升级窗口,点击升级后,与shareSDK存在类名冲突,以下是我看见的报错:
Assets/ShareSDKiOSAutoPackage/Editor/SDKPorter/XCodeEditor/XCMod.cs(106,37): error CS0234: The type or namespace name jsonDecode' does not exist in the namespace MiniJSON'. Are you missing an assembly reference?
其实Demo.cs也存在这样的冲突,只是我删掉了。

微信登陆授权后返回自己APP界面的时候卡死了……

求助!!!Unity 2017 .1 的版本接入sdk, 调用GetUserInfo后会进入到微信的界面,点击登陆后,返回自己app的界面的时候就会程序卡死,新建了一个页面,用你们的demo.cs 也会同样卡死。 用的是魅族手机,Android系统 6.0。
我已经重新打包过那个demo.jar, 改过里面的包路径为自己的路径了,其他配置应该都不会有错的。

Wechat authorization issue

Sharing is working correctly, but ssdk.showUserHandler and ssdk.authHandler is never called after
ssdk.Authorize(PlatformType.WeChat) so I cant get user info. (appid and appsecret was setted correctly). Can you help me with this issue?

android line web login bug

there is a problem with the line web login.

when login from web login on android, I get the error.

there is no issue with ios.

the replay path occurs when you are redirected to the app after logging in from the web login.

2019-10-23 16:33:08.055 25046-25312/? W/System.err: at cn.sharesdk.line.a$1.run(LineAuthorizeWebviewClient.java:59)
2019-10-23 16:33:08.086 25046-25066/? I/Unity: OnReceivedRequest : 1 , Fail , Line
{"msg":"Authorize token is empty", "stack":[{"file":"LineAuthorizeWebviewClient.java", "method":"run", "line":59, "cls":"cn.sharesdk.line.a$1"}]}

Reflection has wrong type data.

I encounter this problem and it makes my app CRASH!!!

--------- beginning of crash E/AndroidRuntime(19305): FATAL EXCEPTION: main E/AndroidRuntime(19305): Process: archiive.sofy, PID: 19305 E/AndroidRuntime(19305): java.lang.Error: FATAL EXCEPTION [main] E/AndroidRuntime(19305): Unity version : 5.3.7f1 E/AndroidRuntime(19305): Device model : smartisan YQ601 E/AndroidRuntime(19305): Device fingerprint: SMARTISAN/msm8916_32:5.1.1/LMY47V/1:user/release-keys E/AndroidRuntime(19305): E/AndroidRuntime(19305): Caused by: java.lang.NumberFormatException: Invalid int: "app_id" E/AndroidRuntime(19305): at java.lang.Integer.invalidInt(Integer.java:138) E/AndroidRuntime(19305): at java.lang.Integer.parse(Integer.java:410) E/AndroidRuntime(19305): at java.lang.Integer.parseInt(Integer.java:367) E/AndroidRuntime(19305): at java.lang.Integer.parseInt(Integer.java:334) E/AndroidRuntime(19305): at cn.sharesdk.unity3d.ShareSDKUtils.handleMessage(ShareSDKUtils.java:217) E/AndroidRuntime(19305): at com.mob.tools.utils.UIHandler.handleMessage(UIHandler.java:86) E/AndroidRuntime(19305): at com.mob.tools.utils.UIHandler.access$000(UIHandler.java:13) E/AndroidRuntime(19305): at com.mob.tools.utils.UIHandler$1.handleMessage(UIHandler.java:64) E/AndroidRuntime(19305): at android.os.Handler.dispatchMessage(Handler.java:98) E/AndroidRuntime(19305): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime(19305): at android.app.ActivityThread.main(ActivityThread.java:5313) E/AndroidRuntime(19305): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(19305): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime(19305): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1116) E/AndroidRuntime(19305): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:809) W/ActivityManager( 2730): Force finishing activity 1 archiive.sofy/com.xzimg.rigidfacetracking.RigidFaceTrackingPlugin

I check the code, in Java, the error comes from :

for (Map.Entry<String, Object> entry : devInfo.entrySet())
      {
        String p = ShareSDK.platformIdToName(Integer.parseInt((String)entry.getKey()));
        if (p != null)
        {
          if (DEBUG) {
            System.out.println(p + " ==>>" + new Hashon().fromHashMap((HashMap)entry.getValue()));
          }
          ShareSDK.setPlatformDevInfo(p, (HashMap)entry.getValue());
        }
      }

The Integer.parseInt(Integer) NumberFormatException in the thread causes the whole app crash. Never use parseInt(Integer) but use TryPhase(String, out Integer) instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.