Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Moved source folders to new location
Browse files Browse the repository at this point in the history
  • Loading branch information
SotoiGhost committed Jun 27, 2019
1 parent c7d543d commit 7c4555f
Show file tree
Hide file tree
Showing 231 changed files with 36,862 additions and 0 deletions.
74 changes: 74 additions & 0 deletions source/Firebase/ABTesting/ApiDefinition.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
using Foundation;
using ObjCRuntime;

namespace Firebase.ABTesting {
// @interface FIRExperimentController : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRExperimentController")]
interface ExperimentController {
// +(FIRExperimentController * _Nonnull)sharedInstance;
[Static]
[Export ("sharedInstance")]
ExperimentController SharedInstance { get; }

// -(void)updateExperimentsWithServiceOrigin:(NSString * _Nonnull)origin events:(FIRLifecycleEvents * _Nonnull)events policy:(NSObject * _Nonnull)policy lastStartTime:(NSTimeInterval)lastStartTime payloads:(NSArray<NSData *> * _Nonnull)payloads;
[Export ("updateExperimentsWithServiceOrigin:events:policy:lastStartTime:payloads:")]
void UpdateExperiments (string origin, LifecycleEvents events, NSObject policy, double lastStartTime, NSData [] payloads);

// -(NSTimeInterval)latestExperimentStartTimestampBetweenTimestamp:(NSTimeInterval)timestamp andPayloads:(NSArray<NSData *> * _Nonnull)payloads;
[Export ("latestExperimentStartTimestampBetweenTimestamp:andPayloads:")]
double GetLatestExperimentStartTimestampBetweenTimestamp (double timestamp, NSData [] payloads);
}

[Static]
interface DefaultLifecycleEventNames {
// extern NSString *const _Nonnull FIRSetExperimentEventName;
[Field ("FIRSetExperimentEventName", "__Internal")]
NSString SetExperiment { get; }

// extern NSString *const _Nonnull FIRActivateExperimentEventName;
[Field ("FIRActivateExperimentEventName", "__Internal")]
NSString ActivateExperiment { get; }

// extern NSString *const _Nonnull FIRClearExperimentEventName;
[Field ("FIRClearExperimentEventName", "__Internal")]
NSString ClearExperiment { get; }

// extern NSString *const _Nonnull FIRTimeoutExperimentEventName;
[Field ("FIRTimeoutExperimentEventName", "__Internal")]
NSString TimeoutExperiment { get; }

// extern NSString *const _Nonnull FIRExpireExperimentEventName;
[Field ("FIRExpireExperimentEventName", "__Internal")]
NSString ExpireExperiment { get; }
}

// @interface FIRLifecycleEvents : NSObject
[BaseType (typeof (NSObject), Name = "FIRLifecycleEvents")]
interface LifecycleEvents {
// @property (copy, nonatomic) NSString * _Nonnull setExperimentEventName;
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.SetExperiment'.")]
[Export ("setExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
NSString SetExperimentEventName { get; set; }

// @property (copy, nonatomic) NSString * _Nonnull activateExperimentEventName;
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.ActivateExperiment'.")]
[Export ("activateExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
NSString ActivateExperimentEventName { get; set; }

// @property (copy, nonatomic) NSString * _Nonnull clearExperimentEventName;
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.ClearExperiment'.")]
[Export ("clearExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
NSString ClearExperimentEventName { get; set; }

// @property (copy, nonatomic) NSString * _Nonnull timeoutExperimentEventName;
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.TimeoutExperiment'.")]
[Export ("timeoutExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
NSString TimeoutExperimentEventName { get; set; }

// @property (copy, nonatomic) NSString * _Nonnull expireExperimentEventName;
[Advice ("You can use the default event name 'DefaultLifecycleEventNames.ExpireExperiment'.")]
[Export ("expireExperimentEventName", ArgumentSemantic = ArgumentSemantic.Copy)]
NSString ExpireExperimentEventName { get; set; }
}
}
62 changes: 62 additions & 0 deletions source/Firebase/ABTesting/Firebase.ABTesting.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DC604F3B-B755-4697-AB9A-CAFF451D2CB7}</ProjectGuid>
<ProjectTypeGuids>{8FFB629D-F513-41CE-95D2-7ECE97B6EEEC};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>Firebase.ABTesting</RootNamespace>
<AssemblyName>Firebase.ABTesting</AssemblyName>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="Xamarin.iOS" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Loader.cs" />
</ItemGroup>
<ItemGroup>
<ObjcBindingApiDefinition Include="ApiDefinition.cs" />
</ItemGroup>
<ItemGroup>
<ObjcBindingCoreSource Include="Structs.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Firebase.InstanceID\source\Firebase.InstanceID\Firebase.InstanceID.csproj">
<Project>{D6AA184C-DA45-4BBB-988A-451B20C7B804}</Project>
<Name>Firebase.InstanceID</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Firebase.Core\source\Firebase.Core\Firebase.Core.csproj">
<Project>{0AD1ED63-C008-41B3-8ADB-04696B4880E3}</Project>
<Name>Firebase.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Firebase.Analytics\source\Firebase.Analytics\Firebase.Analytics.csproj">
<Project>{87BB564C-85A8-4EC1-AD16-EC0A1ACCEE56}</Project>
<Name>Firebase.Analytics</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Firebase.ABTesting.targets" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.ObjCBinding.CSharp.targets" />
</Project>
22 changes: 22 additions & 0 deletions source/Firebase/ABTesting/Firebase.ABTesting.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<_FirebaseABTestingAssemblyName>Firebase.ABTesting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_FirebaseABTestingAssemblyName>
<_FirebaseABTestingItemsFolder>FABTstng-2.0.0</_FirebaseABTestingItemsFolder>
<_FirebaseABTestingSDKBaseFolder>$(XamarinBuildDownloadDir)$(_FirebaseABTestingItemsFolder)\Frameworks\</_FirebaseABTestingSDKBaseFolder>
</PropertyGroup>

<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
<XamarinBuildDownload Include="$(_FirebaseABTestingItemsFolder)">
<Url>https://dl.google.com/dl/cpdc/c0e282822215a254/FirebaseABTesting-2.0.0.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<NativeReference Include="$(_FirebaseABTestingSDKBaseFolder)FirebaseABTesting.framework">
<Kind>Framework</Kind>
<ForceLoad>True</ForceLoad>
<LinkerFlags>-ObjC -lz</LinkerFlags>
<Frameworks>Security SystemConfiguration</Frameworks>
</NativeReference>
</ItemGroup>
</Project>
27 changes: 27 additions & 0 deletions source/Firebase/ABTesting/Loader.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;

namespace Firebase.ABTesting
{
public class Loader
{
static Loader ()
{
Firebase.Core.Loader.ForceLoad ();
Firebase.InstanceID.Loader.ForceLoad ();
Firebase.Analytics.Loader.ForceLoad ();
}

public static void ForceLoad () { }
}
}

namespace ApiDefinition
{
partial class Messaging
{
static Messaging ()
{
Firebase.ABTesting.Loader.ForceLoad ();
}
}
}
35 changes: 35 additions & 0 deletions source/Firebase/ABTesting/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.CompilerServices;

using Foundation;

// This attribute allows you to mark your assemblies as “safe to link”.
// When the attribute is present, the linker—if enabled—will process the assembly
// even if you’re using the “Link SDK assemblies only” option, which is the default for device builds.

[assembly: LinkerSafe]

// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.

[assembly: AssemblyTitle ("Firebase.ABTesting")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("")]
[assembly: AssemblyCopyright ("Microsoft")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]

// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion ("1.0.0.0")]
[assembly: AssemblyFileVersion ("2.0.0.0")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.

//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]
4 changes: 4 additions & 0 deletions source/Firebase/ABTesting/Structs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using System;

namespace Firebase.ABTesting {
}
Loading

0 comments on commit 7c4555f

Please sign in to comment.