Skip to content

Commit 7c4555f

Browse files
author
SotoiGhost
committed
Moved source folders to new location
1 parent c7d543d commit 7c4555f

File tree

231 files changed

+36862
-0
lines changed

Some content is hidden

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

231 files changed

+36862
-0
lines changed
+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
using Foundation;
2+
using ObjCRuntime;
3+
4+
namespace Firebase.ABTesting {
5+
// @interface FIRExperimentController : NSObject
6+
[DisableDefaultCtor]
7+
[BaseType (typeof (NSObject), Name = "FIRExperimentController")]
8+
interface ExperimentController {
9+
// +(FIRExperimentController * _Nonnull)sharedInstance;
10+
[Static]
11+
[Export ("sharedInstance")]
12+
ExperimentController SharedInstance { get; }
13+
14+
// -(void)updateExperimentsWithServiceOrigin:(NSString * _Nonnull)origin events:(FIRLifecycleEvents * _Nonnull)events policy:(NSObject * _Nonnull)policy lastStartTime:(NSTimeInterval)lastStartTime payloads:(NSArray<NSData *> * _Nonnull)payloads;
15+
[Export ("updateExperimentsWithServiceOrigin:events:policy:lastStartTime:payloads:")]
16+
void UpdateExperiments (string origin, LifecycleEvents events, NSObject policy, double lastStartTime, NSData [] payloads);
17+
18+
// -(NSTimeInterval)latestExperimentStartTimestampBetweenTimestamp:(NSTimeInterval)timestamp andPayloads:(NSArray<NSData *> * _Nonnull)payloads;
19+
[Export ("latestExperimentStartTimestampBetweenTimestamp:andPayloads:")]
20+
double GetLatestExperimentStartTimestampBetweenTimestamp (double timestamp, NSData [] payloads);
21+
}
22+
23+
[Static]
24+
interface DefaultLifecycleEventNames {
25+
// extern NSString *const _Nonnull FIRSetExperimentEventName;
26+
[Field ("FIRSetExperimentEventName", "__Internal")]
27+
NSString SetExperiment { get; }
28+
29+
// extern NSString *const _Nonnull FIRActivateExperimentEventName;
30+
[Field ("FIRActivateExperimentEventName", "__Internal")]
31+
NSString ActivateExperiment { get; }
32+
33+
// extern NSString *const _Nonnull FIRClearExperimentEventName;
34+
[Field ("FIRClearExperimentEventName", "__Internal")]
35+
NSString ClearExperiment { get; }
36+
37+
// extern NSString *const _Nonnull FIRTimeoutExperimentEventName;
38+
[Field ("FIRTimeoutExperimentEventName", "__Internal")]
39+
NSString TimeoutExperiment { get; }
40+
41+
// extern NSString *const _Nonnull FIRExpireExperimentEventName;
42+
[Field ("FIRExpireExperimentEventName", "__Internal")]
43+
NSString ExpireExperiment { get; }
44+
}
45+
46+
// @interface FIRLifecycleEvents : NSObject
47+
[BaseType (typeof (NSObject), Name = "FIRLifecycleEvents")]
48+
interface LifecycleEvents {
49+
// @property (copy, nonatomic) NSString * _Nonnull setExperimentEventName;
50+
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.SetExperiment'.")]
51+
[Export ("setExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
52+
NSString SetExperimentEventName { get; set; }
53+
54+
// @property (copy, nonatomic) NSString * _Nonnull activateExperimentEventName;
55+
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.ActivateExperiment'.")]
56+
[Export ("activateExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
57+
NSString ActivateExperimentEventName { get; set; }
58+
59+
// @property (copy, nonatomic) NSString * _Nonnull clearExperimentEventName;
60+
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.ClearExperiment'.")]
61+
[Export ("clearExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
62+
NSString ClearExperimentEventName { get; set; }
63+
64+
// @property (copy, nonatomic) NSString * _Nonnull timeoutExperimentEventName;
65+
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.TimeoutExperiment'.")]
66+
[Export ("timeoutExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
67+
NSString TimeoutExperimentEventName { get; set; }
68+
69+
// @property (copy, nonatomic) NSString * _Nonnull expireExperimentEventName;
70+
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.ExpireExperiment'.")]
71+
[Export ("expireExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
72+
NSString ExpireExperimentEventName { get; set; }
73+
}
74+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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>{DC604F3B-B755-4697-AB9A-CAFF451D2CB7}</ProjectGuid>
7+
<ProjectTypeGuids>{8FFB629D-F513-41CE-95D2-7ECE97B6EEEC};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
8+
<OutputType>Library</OutputType>
9+
<RootNamespace>Firebase.ABTesting</RootNamespace>
10+
<AssemblyName>Firebase.ABTesting</AssemblyName>
11+
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
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+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
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+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
29+
</PropertyGroup>
30+
<ItemGroup>
31+
<Reference Include="System" />
32+
<Reference Include="Xamarin.iOS" />
33+
</ItemGroup>
34+
<ItemGroup>
35+
<Compile Include="Properties\AssemblyInfo.cs" />
36+
<Compile Include="Loader.cs" />
37+
</ItemGroup>
38+
<ItemGroup>
39+
<ObjcBindingApiDefinition Include="ApiDefinition.cs" />
40+
</ItemGroup>
41+
<ItemGroup>
42+
<ObjcBindingCoreSource Include="Structs.cs" />
43+
</ItemGroup>
44+
<ItemGroup>
45+
<ProjectReference Include="..\..\..\Firebase.InstanceID\source\Firebase.InstanceID\Firebase.InstanceID.csproj">
46+
<Project>{D6AA184C-DA45-4BBB-988A-451B20C7B804}</Project>
47+
<Name>Firebase.InstanceID</Name>
48+
</ProjectReference>
49+
<ProjectReference Include="..\..\..\Firebase.Core\source\Firebase.Core\Firebase.Core.csproj">
50+
<Project>{0AD1ED63-C008-41B3-8ADB-04696B4880E3}</Project>
51+
<Name>Firebase.Core</Name>
52+
</ProjectReference>
53+
<ProjectReference Include="..\..\..\Firebase.Analytics\source\Firebase.Analytics\Firebase.Analytics.csproj">
54+
<Project>{87BB564C-85A8-4EC1-AD16-EC0A1ACCEE56}</Project>
55+
<Name>Firebase.Analytics</Name>
56+
</ProjectReference>
57+
</ItemGroup>
58+
<ItemGroup>
59+
<None Include="Firebase.ABTesting.targets" />
60+
</ItemGroup>
61+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.ObjCBinding.CSharp.targets" />
62+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_FirebaseABTestingAssemblyName>Firebase.ABTesting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_FirebaseABTestingAssemblyName>
6+
<_FirebaseABTestingItemsFolder>FABTstng-2.0.0</_FirebaseABTestingItemsFolder>
7+
<_FirebaseABTestingSDKBaseFolder>$(XamarinBuildDownloadDir)$(_FirebaseABTestingItemsFolder)\Frameworks\</_FirebaseABTestingSDKBaseFolder>
8+
</PropertyGroup>
9+
10+
<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
11+
<XamarinBuildDownload Include="$(_FirebaseABTestingItemsFolder)">
12+
<Url>https://dl.google.com/dl/cpdc/c0e282822215a254/FirebaseABTesting-2.0.0.tar.gz</Url>
13+
<Kind>Tgz</Kind>
14+
</XamarinBuildDownload>
15+
<NativeReference Include="$(_FirebaseABTestingSDKBaseFolder)FirebaseABTesting.framework">
16+
<Kind>Framework</Kind>
17+
<ForceLoad>True</ForceLoad>
18+
<LinkerFlags>-ObjC -lz</LinkerFlags>
19+
<Frameworks>Security SystemConfiguration</Frameworks>
20+
</NativeReference>
21+
</ItemGroup>
22+
</Project>

source/Firebase/ABTesting/Loader.cs

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
3+
namespace Firebase.ABTesting
4+
{
5+
public class Loader
6+
{
7+
static Loader ()
8+
{
9+
Firebase.Core.Loader.ForceLoad ();
10+
Firebase.InstanceID.Loader.ForceLoad ();
11+
Firebase.Analytics.Loader.ForceLoad ();
12+
}
13+
14+
public static void ForceLoad () { }
15+
}
16+
}
17+
18+
namespace ApiDefinition
19+
{
20+
partial class Messaging
21+
{
22+
static Messaging ()
23+
{
24+
Firebase.ABTesting.Loader.ForceLoad ();
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
4+
using Foundation;
5+
6+
// This attribute allows you to mark your assemblies as “safe to link”.
7+
// When the attribute is present, the linker—if enabled—will process the assembly
8+
// even if you’re using the “Link SDK assemblies only” option, which is the default for device builds.
9+
10+
[assembly: LinkerSafe]
11+
12+
// Information about this assembly is defined by the following attributes.
13+
// Change them to the values specific to your project.
14+
15+
[assembly: AssemblyTitle ("Firebase.ABTesting")]
16+
[assembly: AssemblyDescription ("")]
17+
[assembly: AssemblyConfiguration ("")]
18+
[assembly: AssemblyCompany ("")]
19+
[assembly: AssemblyProduct ("")]
20+
[assembly: AssemblyCopyright ("Microsoft")]
21+
[assembly: AssemblyTrademark ("")]
22+
[assembly: AssemblyCulture ("")]
23+
24+
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
25+
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
26+
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
27+
28+
[assembly: AssemblyVersion ("1.0.0.0")]
29+
[assembly: AssemblyFileVersion ("2.0.0.0")]
30+
31+
// The following attributes are used to specify the signing key for the assembly,
32+
// if desired. See the Mono documentation for more information about signing.
33+
34+
//[assembly: AssemblyDelaySign(false)]
35+
//[assembly: AssemblyKeyFile("")]

source/Firebase/ABTesting/Structs.cs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
using System;
2+
3+
namespace Firebase.ABTesting {
4+
}

0 commit comments

Comments
 (0)