Skip to content

Commit be79942

Browse files
committed
Facebook SDK For Unity 7.9.0
1 parent fb74f8b commit be79942

File tree

106 files changed

+3384
-593
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+3384
-593
lines changed

.gitignore

Lines changed: 3 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -64,81 +64,6 @@ FacebookSettings.asset*
6464
/facebook-android-wrapper/libs/
6565

6666
# MD Plugins
67-
*.StyleCop
68-
*.StyleCop.meta
69-
StyleCop.Cache
70-
StyleCop.Cache.meta
71-
72-
# OSX
73-
*.DS_Store
74-
75-
# built application files
76-
*.apk
77-
*.ap_
78-
79-
# files for the dex VM
80-
*.dex
81-
82-
# Java class files
83-
*.class
84-
85-
# generated files
86-
bin/
87-
gen/
88-
obj/
89-
90-
# Local configuration file (sdk path, etc)
91-
local.properties
92-
local.gradle
93-
94-
# Proguard folder generated by Eclipse
95-
proguard/
96-
97-
# Intellij project files
98-
*.iml
99-
*.ipr
100-
*.iws
101-
.idea/
102-
103-
# Gradle
104-
.gradle
105-
build
106-
107-
# vim temp files
108-
*.swp
109-
110-
# Arc generated
111-
.phutil_module_cache
112-
113-
# Unity3D generated meta files
114-
*.pidb.meta
115-
116-
# Unity3D Generated File On Crash Reports
117-
sysinfo.txt
118-
119-
# Unity project version File
120-
ProjectVersion.txt
121-
122-
# Export Folder For SDK Package
123-
/TempGenStaticObjects/
124-
/out/
125-
126-
# MD unit test results
127-
test-results/
128-
unit_test_results.txt
129-
TestResult.xml
130-
131-
# Ignore Plugin Folders which are build by build
132-
/Facebook.Unity/Assets/Plugins/
133-
134-
# Ignore Current Facebook Settings
135-
FacebookSettings.asset*
136-
137-
# Ignore android wrapper lib created by build scripts
138-
/facebook-android-wrapper/libs/
139-
140-
# MD Plugins
141-
*.StyleCop
14267
*.StyleCop.meta
14368
StyleCop.Cache
14469
StyleCop.Cache.meta
@@ -151,3 +76,6 @@ StyleCop.Cache.meta
15176

15277
# Ignore editor generated user prefs
15378
*.userprefs
79+
80+
# Nuget packages
81+
/packages/
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
3+
*
4+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5+
* copy, modify, and distribute this software in source code or binary form for use
6+
* in connection with the web services and APIs provided by Facebook.
7+
*
8+
* As with any software that integrates with the Facebook platform, your use of
9+
* this software is subject to the Facebook Developer Principles and Policies
10+
* [http://developers.facebook.com/policy/]. This copyright notice shall be
11+
* included in all copies or substantial portions of the software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
*/
20+
21+
namespace Facebook.Unity.Android
22+
{
23+
public class AndroidWrapper
24+
{
25+
}
26+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectGuid>{CDB20BC1-DC6F-46BD-9FBB-7F689E790B1B}</ProjectGuid>
7+
<OutputType>Library</OutputType>
8+
<RootNamespace>Facebook.Unity.Android.StrippingHack</RootNamespace>
9+
<AssemblyName>Facebook.Unity.Android</AssemblyName>
10+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
11+
<ReleaseVersion></ReleaseVersion>
12+
</PropertyGroup>
13+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
14+
<DebugSymbols>true</DebugSymbols>
15+
<DebugType>full</DebugType>
16+
<Optimize>false</Optimize>
17+
<OutputPath>bin\Debug</OutputPath>
18+
<DefineConstants>DEBUG;</DefineConstants>
19+
<ErrorReport>prompt</ErrorReport>
20+
<WarningLevel>4</WarningLevel>
21+
<ConsolePause>false</ConsolePause>
22+
</PropertyGroup>
23+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
24+
<Optimize>true</Optimize>
25+
<OutputPath>bin\Release</OutputPath>
26+
<ErrorReport>prompt</ErrorReport>
27+
<WarningLevel>4</WarningLevel>
28+
<ConsolePause>false</ConsolePause>
29+
</PropertyGroup>
30+
<ItemGroup>
31+
<Reference Include="System" />
32+
</ItemGroup>
33+
<ItemGroup>
34+
<Compile Include="AndroidWrapper.cs" />
35+
<Compile Include="Properties\AssemblyInfo.cs" />
36+
</ItemGroup>
37+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
38+
</Project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
4+
<StartAction>Project</StartAction>
5+
<ConsolePause>true</ConsolePause>
6+
</PropertyGroup>
7+
</Project>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
3+
*
4+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5+
* copy, modify, and distribute this software in source code or binary form for use
6+
* in connection with the web services and APIs provided by Facebook.
7+
*
8+
* As with any software that integrates with the Facebook platform, your use of
9+
* this software is subject to the Facebook Developer Principles and Policies
10+
* [http://developers.facebook.com/policy/]. This copyright notice shall be
11+
* included in all copies or substantial portions of the software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
*/
20+
21+
using System.Reflection;
22+
using System.Runtime.CompilerServices;
23+
24+
[assembly: AssemblyVersion("7.9.0")]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
3+
*
4+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5+
* copy, modify, and distribute this software in source code or binary form for use
6+
* in connection with the web services and APIs provided by Facebook.
7+
*
8+
* As with any software that integrates with the Facebook platform, your use of
9+
* this software is subject to the Facebook Developer Principles and Policies
10+
* [http://developers.facebook.com/policy/]. This copyright notice shall be
11+
* included in all copies or substantial portions of the software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
*/
20+
21+
namespace Facebook.Unity.Android
22+
{
23+
using Facebook.Unity.Mobile.Android;
24+
using UnityEngine;
25+
26+
internal class AndroidWrapper : IAndroidWrapper
27+
{
28+
private const string FacebookJavaClassName = "com.facebook.unity.FB";
29+
private AndroidJavaClass facebookJavaClass = new AndroidJavaClass(FacebookJavaClassName);
30+
31+
public T CallStatic<T>(string methodName)
32+
{
33+
return this.facebookJavaClass.CallStatic<T>(methodName);
34+
}
35+
36+
public void CallStatic(string methodName, params object[] args)
37+
{
38+
this.facebookJavaClass.CallStatic(methodName, args);
39+
}
40+
}
41+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectGuid>{D3DF5151-7271-4CBA-8F91-85B7845E2FBD}</ProjectGuid>
7+
<OutputType>Library</OutputType>
8+
<RootNamespace>Facebook.Unity.Android</RootNamespace>
9+
<AssemblyName>Facebook.Unity.Android</AssemblyName>
10+
<ReleaseVersion>
11+
</ReleaseVersion>
12+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
13+
</PropertyGroup>
14+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
15+
<DebugSymbols>true</DebugSymbols>
16+
<DebugType>full</DebugType>
17+
<Optimize>false</Optimize>
18+
<OutputPath>bin\Debug</OutputPath>
19+
<DefineConstants>DEBUG;</DefineConstants>
20+
<ErrorReport>prompt</ErrorReport>
21+
<WarningLevel>4</WarningLevel>
22+
<ConsolePause>false</ConsolePause>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<DebugType>full</DebugType>
26+
<Optimize>true</Optimize>
27+
<OutputPath>bin\Release</OutputPath>
28+
<ErrorReport>prompt</ErrorReport>
29+
<WarningLevel>4</WarningLevel>
30+
<ConsolePause>false</ConsolePause>
31+
</PropertyGroup>
32+
<ItemGroup>
33+
<Reference Include="System" />
34+
<Reference Include="UnityEngine">
35+
<HintPath>\Applications\Unity\Unity.app\Contents\Managed\UnityEngine.dll</HintPath>
36+
</Reference>
37+
</ItemGroup>
38+
<ItemGroup>
39+
<Compile Include="Properties\AssemblyInfo.cs" />
40+
<Compile Include="AndroidWrapper.cs" />
41+
</ItemGroup>
42+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
43+
<ItemGroup>
44+
<ProjectReference Include="..\Facebook.Unity\Facebook.Unity.csproj">
45+
<Project>{3DFF6C0C-BB04-405D-A23F-95999630E7F8}</Project>
46+
<Name>Facebook.Unity</Name>
47+
</ProjectReference>
48+
</ItemGroup>
49+
</Project>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
3+
*
4+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5+
* copy, modify, and distribute this software in source code or binary form for use
6+
* in connection with the web services and APIs provided by Facebook.
7+
*
8+
* As with any software that integrates with the Facebook platform, your use of
9+
* this software is subject to the Facebook Developer Principles and Policies
10+
* [http://developers.facebook.com/policy/]. This copyright notice shall be
11+
* included in all copies or substantial portions of the software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
*/
20+
21+
using System.Reflection;
22+
using System.Runtime.CompilerServices;
23+
24+
[assembly: AssemblyVersion("7.9.0")]

Facebook.Unity.Arcade/ArcadeWrapper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public void DoPayRequest(
9898
string requestId,
9999
string pricepointId,
100100
string testCurrency,
101+
string developerPayload,
101102
string callbackId,
102103
ArcadeFacebook.OnComplete completeDelegate)
103104
{
@@ -112,7 +113,8 @@ public void DoPayRequest(
112113
quantityMax,
113114
requestId,
114115
pricepointId,
115-
testCurrency);
116+
testCurrency,
117+
developerPayload);
116118
this.HandleRequest<PayRequest, PayResponse>(
117119
request,
118120
callbackId,

Facebook.Unity.Arcade/Facebook.Unity.Arcade.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<DefineConstants>DEBUG;</DefineConstants>
2020
<ErrorReport>prompt</ErrorReport>
2121
<WarningLevel>4</WarningLevel>
22+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2223
</PropertyGroup>
2324
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2425
<DebugType>none</DebugType>
@@ -27,11 +28,12 @@
2728
<ErrorReport>prompt</ErrorReport>
2829
<WarningLevel>4</WarningLevel>
2930
<ConsolePause>false</ConsolePause>
31+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3032
</PropertyGroup>
3133
<ItemGroup>
3234
<Reference Include="System" />
3335
<Reference Include="UnityEngine">
34-
<HintPath>\Applications\Unity\Unity.app\Contents\Frameworks\Managed\UnityEngine.dll</HintPath>
36+
<HintPath>\Applications\Unity\Unity.app\Contents\Managed\UnityEngine.dll</HintPath>
3537
</Reference>
3638
<Reference Include="FacebookNamedPipeClient">
3739
<HintPath>Plugins\FacebookNamedPipeClient.dll</HintPath>
Binary file not shown.

Facebook.Unity.Arcade/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1919
*/
2020

21-
using System.Runtime.CompilerServices;
2221
using System.Reflection;
22+
using System.Runtime.CompilerServices;
2323

24-
[assembly: AssemblyVersion("7.8.0")]
24+
[assembly: AssemblyVersion("7.9.0")]

0 commit comments

Comments
 (0)