Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
481 changes: 470 additions & 11 deletions .gitignore

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "Xamarin.Auth"]
path = Xamarin.Auth
[submodule "externals/Xamarin.Auth"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to keep this as a submodule, or should it just be moved to a NuGet dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explanation:

  1. Xamarin.Auth was used as submodule in earlier version (on master branch), so I just moved it to external/ folder to match our CI system
  2. during development it helps to reference projects for easier debugging and fixing
  3. there are still features to be added (Windows platforms) to Xamarin.Social, so it would be beneficial to keep Xamarin.Auth as a submodule for a while

path = externals/Xamarin.Auth
url = https://github.com/xamarin/Xamarin.Auth.git
Empty file modified Rakefile
100755 → 100644
Empty file.
1 change: 0 additions & 1 deletion Xamarin.Auth
Submodule Xamarin.Auth deleted from ea5965
1 change: 1 addition & 0 deletions externals/Xamarin.Auth
Submodule Xamarin.Auth added at abc6ca
15 changes: 15 additions & 0 deletions nuget-restore.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
echo off

set SOLUTIONS=^
externals/Xamarin.Auth/source/Xamarin.Auth-Library.sln

cinst NuGet.Commandline

for %%s IN (%SOLUTIONS%) DO (
echo nuget restore %%s
nuget.exe restore %%s
)

@IF %ERRORLEVEL% NEQ 0 PAUSE


161 changes: 161 additions & 0 deletions nuget/Xamarin.Social.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<!--
https://docs.nuget.org/create/nuspec-reference#specifying-dependencies
-->
<metadata minClientVersion="2.8.1">
<id>
Xamarin.Social
</id>
<!--
SemVer - Semantic Versioning
http://semver.org/
-->
<version>
1.1.8
</version>
<title>
Xamarin.Social
</title>
<authors>
Xamarin
</authors>
<owners>
Xamarin
</owners>
<copyright>
Copyright 2013-2017
</copyright>
<licenseUrl>
https://github.com/xamarin/Xamarin.Social/blob/master/License.md
</licenseUrl>
<projectUrl>
https://github.com/xamarin/Xamarin.Social
</projectUrl>
<iconUrl>
https://xamarin-component-icons.s3.amazonaws.com/Xamarin.Social.png
</iconUrl>
<requireLicenseAcceptance>
false
</requireLicenseAcceptance>
<description>
Share statuses, links, and images on Facebook, Flickr, Twitter and more.
</description>
<summary>
Xamarin.Social posts statuses, links, images, and other media to social networks using
a simple, cross-platform API. With Xamarin.Social, you can easily:

Share text and images on social networks.
Access social network APIs using authenticated requests.
Automatically and securely store user credentials using Xamarin.Auth.

Xamarin.Social currently works with these social networks, and can be extended
to support custom services:

App.net
Facebook
Flickr
Twitter
</summary>
<tags>
xamarin,
pcl,
android, monoandroid, monodroid, xamarin.android,
ios, monotouch, xamarin.ios
windows phone, winphone, wp,
windows phone 8 silverlight, winphone 8 sl, wp8 sl
windows phone 8.1 silverlight, winphone 8.1 sl, wp81 sl
windows 8.1, windows 8.1 winrt, win81
windows phone 8.1 winrt, winphone 8.1 winrt, wpa81
<!--
universal windows platform, uwp, windows 10
plugin for xamarin, plugin,
xamarin.forms,
-->
</tags>
<dependencies>
<dependency id="Xamarin.Auth" version="1.3.0"/>
</dependencies>
</metadata>
<files>
<!--
src
on windows with \
on macosx with /
-->
<!--
Core - Portable
-->
<file
src="./output/pcl/Xamarin.Social.dll"
target="lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+XamarinIOS10\Xamarin.Social.dll"
>
</file>

<!--
Xamarin.Android
-->
<file
src="./output/android/Xamarin.Social.dll"
target="lib\MonoAndroid10\Xamarin.Social.dll"
>
</file>

<!--
Xamarin.iOS
Unified
-->
<file
src="./output/ios-unified/Xamarin.Social.dll"
target="lib\Xamarin.iOS10\Xamarin.Social.dll"
>
</file>

<!--
Xamarin.iOS Classic
<file
src="source/output/ios/Xamarin.Social.dll"
target="lib\MonoTouch10\Xamarin.Social.dll"
>
</file>
-->

<!--
Windows Phone 8 Silverlight
<file
src="source/output/wp80/Xamarin.Social.dll"
target="lib\wp8\Xamarin.Social.dll"
>
</file>
-->

<!--
Windows Phone 8.1 WinRT
<file
src="source/output/wpa81/Xamarin.Social.dll"
target="lib\wpa81\Xamarin.Social.dll"
>
</file>
-->

<!--
Windows 8.1 WinRT
Windows Store
<file
src="source/output/win81/Xamarin.Social.dll"
target="lib\win81\Xamarin.Social.dll"
>
</file>
-->
<!--
Universal Windows Platform, UWP
Windows 10
<file
src="source/output/uwp/Xamarin.Social.dll"
target="lib\uwp\Xamarin.Social.dll"
>
</file>
-->

</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="Xamarin.Social.Sample.Android">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="23" />
<application android:label="Xamarin.Social.Sample.Android"></application>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
<?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>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{02315614-C71C-4877-917C-6DB21FD9CC95}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>Xamarin.Social.Sample.Android</RootNamespace>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AndroidApplication>True</AndroidApplication>
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AssemblyName>Xamarin.Social.Sample.Android</AssemblyName>
<TargetFrameworkVersion>v4.0.3</TargetFrameworkVersion>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
</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>
<ConsolePause>False</ConsolePause>
<AndroidLinkMode>None</AndroidLinkMode>
<AndroidSupportedAbis>armeabi;armeabi-v7a;x86</AndroidSupportedAbis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>True</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidSupportedAbis>armeabi;armeabi-v7a;x86</AndroidSupportedAbis>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Mono.Android" />
<Reference Include="Xamarin.Mobile">
<HintPath>Components\xamarin.mobile-0.7.5\lib\android\Xamarin.Mobile.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Auth.Android">
<HintPath>..\..\src\Xamarin.Social.Android\bin\Release\Xamarin.Auth.Android.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Social.Android">
<HintPath>..\..\src\Xamarin.Social.Android\bin\Release\Xamarin.Social.Android.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Resources\Resource.designer.cs" />
<Compile Include="MainActivity.cs" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\Main.axml" />
<AndroidResource Include="Resources\values\Strings.xml" />
<AndroidResource Include="Resources\drawable\Icon.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
<ItemGroup>
<Folder Include="Assets\" />
</ItemGroup>
<ItemGroup>
<Content Include="Properties\AndroidManifest.xml" />
</ItemGroup>
</Project>
<?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>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{02315614-C71C-4877-917C-6DB21FD9CC95}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>Xamarin.Social.Sample.Android</RootNamespace>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AndroidApplication>True</AndroidApplication>
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AssemblyName>Xamarin.Social.Sample.Android</AssemblyName>
<TargetFrameworkVersion>v4.0.3</TargetFrameworkVersion>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
</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>
<ConsolePause>False</ConsolePause>
<AndroidLinkMode>None</AndroidLinkMode>
<AndroidSupportedAbis>armeabi;armeabi-v7a;x86</AndroidSupportedAbis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>True</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<AndroidSupportedAbis>armeabi;armeabi-v7a;x86</AndroidSupportedAbis>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Mono.Android" />
<Reference Include="Xamarin.Mobile">
<HintPath>Components\xamarin.mobile-0.7.5\lib\android\Xamarin.Mobile.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Auth.Android">
<HintPath>..\..\src\Xamarin.Social.Android\bin\Release\Xamarin.Auth.Android.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Social.Android">
<HintPath>..\..\src\Xamarin.Social.Android\bin\Release\Xamarin.Social.Android.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Resources\Resource.designer.cs" />
<Compile Include="MainActivity.cs" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\Main.axml" />
<AndroidResource Include="Resources\values\Strings.xml" />
<AndroidResource Include="Resources\drawable\Icon.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
<ItemGroup>
<Folder Include="Assets\" />
</ItemGroup>
<ItemGroup>
<Content Include="Properties\AndroidManifest.xml" />
</ItemGroup>
</Project>
Loading