mobclub / new-unity-for-sharesdk Goto Github PK
View Code? Open in Web Editor NEWNew sample of ShareSDK for Unity, including ios and android.
New sample of ShareSDK for Unity, including ios and android.
原Android studio的assets中的文件在unity中报空,请问怎么解决
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 拷贝逻辑尽快修正该问题。
系统 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.FileSystemEnumerableIterator
1[TSource].CommonInit () (at :0)
System.IO.FileSystemEnumerableIterator1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler
1[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.Action
1[T] invocationOne, System.Collections.Generic.List1[T] twoInterfaces, System.Action
1[T] invocationTwo, System.Boolean exitOnFailure) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:356)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
这个东西每个平台和每个版本都不一样,不需要传到git,而且打开unity会根据平台与版本自动生成。不然每次更新太庞大,要发疯了。
![E8R%6_EH5T ~JZX9X9 ODQ](https://user-images.githubusercontent.com/35324214/142993783-21eec4cd-30df-4811-93d4-75b1f7bc45cb.png
)
Unity2019LTS已经出了一个多月,我目前使用的是Unity 2019.4.3f1,打开这个demo工程,控制台直接报相应API不支持的错。估计升级到2019LTS,有许多API变动,插件也可能工作不正常。请确保支持Unity 2019LTS。
你好,我在使用时不能正常与抖音交互,我咨询了你们的微信客服,说是目前抖音API升级了,还未进行适配,请问大概什么时候能调整更新?谢谢!
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支付的项目,总是弹出升级窗口,点击升级后,与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也存在这样的冲突,只是我删掉了。
目前Unity内的iOS库文件内仍然包含了UIWebView
求助!!!Unity 2017 .1 的版本接入sdk, 调用GetUserInfo后会进入到微信的界面,点击登陆后,返回自己app的界面的时候就会程序卡死,新建了一个页面,用你们的demo.cs 也会同样卡死。 用的是魅族手机,Android系统 6.0。
我已经重新打包过那个demo.jar, 改过里面的包路径为自己的路径了,其他配置应该都不会有错的。
新版unity跑不起来,unity2019.3.2
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?
如题
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"}]}
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.
zh-Hans 已经弃用了
几个bundle的多语言需要增加一下支持
使用上述版本 当前sdk无法在Component里面找到
May i know the project is support customer protocol?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.