onepf / OpenIAB

Open In-App Billing for Google Play, SlideMe, Amazon Store, Nokia Store, Samsung Apps, Yandex.Store, Appland, Aptoide, AppMall and Fortumo.
http://onepf.org/openiab/
Apache License 2.0
476 stars 171 forks source link

OpenIAB_WP8.dll wrong file (Editor file, not real store file) in the unity package #410

Closed JoaoCatarino closed 9 years ago

JoaoCatarino commented 9 years ago

I am using your plugin for iOS and Android with no issues and I tried to use your plugin for in-app purchases for Windows Phone 8.0 but the dll that is on the unity package from your website is for Unity Editor testing.

I generated the RealDLL from the source code available on the git hub, but when I replaced on Unity project this files:

-OpenIAB_W8Plugin.dll -OpenIAB_W8Plugin.pdb

the following error appeared on Unity:

Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.

  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
  at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0
  at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0
  at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0

Can you replace this two files in the Unity package available on the website for download, so that I can build a .xap for the store with the correct DLLs?

Regards, João Catarino Game Programmer, Bica Studios

GrimReio commented 9 years ago

Hello,

There are two DLLs. One for editor, other for WP8 runtime. It is a requirement for unity plugin. One in the Assets/Plugins/WP8 is "real" one and is used in runtime.

JoaoCatarino commented 9 years ago

I updated to the last version (openiab-plugin-0.9.8.1) tried again and it worked.

akarimova commented 9 years ago

@JoaoCatarino could you please close the issue

JoaoCatarino commented 9 years ago

Yes, thanks for the replies.