-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
2,195 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Name":"Google Play Services - Ads","Id":3327,"Alias":"googleplayservices-ads","Description":"Google Play Services - Ads\n==========================\n\nThe Google Mobile Ads SDK is the latest generation in Google mobile advertising, featuring refined ad formats and streamlined APIs for access to mobile ad networks and advertising solutions. The SDK enables mobile app developers to maximize their monetization in native mobile apps.\n\n\n\n\n\n\nGoogle Play Services\n====================\n\nGive your apps more features to attract users on a wider range of devices. With Google Play services, your app can take advantage of the latest, Google-powered features such as Maps, Google+, and more, with automatic platform updates distributed as an APK through the Google Play store. This makes it faster for your users to receive updates and easier for you to integrate the newest that Google has to offer.\n\n\nDevelop\n-------\n\nShip higher quality apps. Faster.\nGet a headstart on your development with Google services that you can use out-of-the-box.\n - Analytics\n - Sign in with Google\n - Maps\n - Places\n - Engage\n\n\n\nGrow an active user base\n------------------------\n\nReach new users and find ways to keep them coming back to your app.\n - Google Cloud Messaging\n - App Indexing\n - App Install Ads\n - App Invites\n - Earn\n\n\n\nTap into a range of tools to make more money\n--------------------------------------------\n\nTake a user-by-user approach to monetization that maximizes your app revenue.\n - AdMob\n - In-App Billing and Subscriptions\n - Android Pay\n \n\n\nMore ways to enhance your app\n-----------------------------\n\n### Use location to power context\n\nRespond to where users are and what they\u0027re doing. Enrich your app with high-accuracy location reporting, geofencing, and activity recognition.\n\n### Stream content to TVs and speakers\nLet users send audio and visual content to any Cast-enabled TV or speaker and control it from their phones or tablets.\n\n### Add social features to your games\nEnhance your games and learn more about your players. Add achievements, leaderboards, saved games, real-time multiplayer, and more.\n\n### Enhance your app for fitness\nParticipate in the fitness ecosystem and add high-engagement features to your app. Analyze raw sensor data or take advantage of shared fitness data.\n\n### Store and manage files in the cloud\nLet users interact with nearly any aspect of their Google Drive content, including sharing permissions, file revisions, and connected apps.\n\n### Support voice actions\nLet users engage with your app quickly and conveniently through voice commands. Respond to system actions or add custom actions of your own.\n\n","Version":"42.1001.0.0","Summary":"Make money and advertise across screens and platforms.","QuickStart":"The Google Mobile Ads SDK is the latest generation in Google mobile advertising, featuring refined ad formats and streamlined APIs for access to mobile ad networks and advertising solutions. The SDK enables mobile app developers to maximize their monetization in native mobile apps.\n\nRequired Android API Levels\n===========================\n\nWe recommend setting your app\u0027s *Target Framework* and *Target Android version* to **Android 5.0 (API Level 21)** or higher in your app project settings.\n\nThis Google Play Service SDK\u0027s requires a *Target Framework* of at least Android 4.1 (API Level 16) to compile.\n\nYou may still set a lower *Minimum Android version* (as low as Android 2.3 - API Level 9) so your app will run on older versions of Android, however you must ensure you do not use any API\u0027s at runtime that are not available on the version of Android your app is running on.\n\n\nAndroid Manifest \n================\n\nSome Google Play Services APIs require specific metadata, attributes, permissions or features to be declared in your *AndroidManifest.xml* file.\n\nThese can be added manually to the *AndroidManifest.xml* file, or merged in through the use of assembly level attributes.\n\n\nThe Google Mobile Ads SDK requires the *Internet* and *Access Network State* permissions to work correctly. You can add these with the following assembly level attributes:\n\n```csharp\n[assembly: UsesPermission (Android.Manifest.Permission.Internet)]\n[assembly: UsesPermission (Android.Manifest.Permission.AccessNetworkState)]\n```\n\nYou must also declare an activity that exists in the SDK by manually adding the following element to your *AndroidManifest.xml* file, inside of the `\u003capplication\u003e` `\u003c/application\u003e` tags:\n\n```xml\n\u003cactivity android:name=\"com.google.android.gms.ads.AdActivity\"\n android:configChanges=\"keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize\"\n android:theme=\"@android:style/Theme.Translucent\" /\u003e\n```\n\n\n\n\n\nSamples\n=======\n\nYou can find a Sample Application within each Google Play Services component. The sample will demonstrate the necessary configuration and some basic API usages.\n\n\n\nThe AdMobSample in this component demonstrates how to use various ad types from code and xml layouts.\n\n\n\n\nLearn More\n==========\n\nYou can learn more about the various Google Play Services SDKs \u0026 APIs by visiting the official [Google APIs for Android][3] documentation\n\n\nYou can learn more about the Google Play Services Ad by visiting the official [AdMob for Android](https://developers.google.com/admob/android/quick-start) documentation.\n\n\n\n[1]: https://console.developers.google.com/ \"Google Developers Console\"\n[2]: https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/MD5_SHA1/ \"Finding your SHA-1 Fingerprints\"\n[3]: https://developers.google.com/android/ \"Google APIs for Android\"\n[4]: https://firebase.google.com/console/ \"Firebase Developer Console\"\n[5]: https://firebase.google.com/ \"Firebase\"\n","Hash":"c5a92d4c4a74dc05f5d82c811364cbaf","TargetPlatforms":["android"],"TrialHash":null} |
73 changes: 73 additions & 0 deletions
73
Components/googleplayservices-ads-42.1001.0.0/component/Details.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
Google Play Services - Ads | ||
========================== | ||
|
||
The Google Mobile Ads SDK is the latest generation in Google mobile advertising, featuring refined ad formats and streamlined APIs for access to mobile ad networks and advertising solutions. The SDK enables mobile app developers to maximize their monetization in native mobile apps. | ||
|
||
|
||
|
||
|
||
|
||
|
||
Google Play Services | ||
==================== | ||
|
||
Give your apps more features to attract users on a wider range of devices. With Google Play services, your app can take advantage of the latest, Google-powered features such as Maps, Google+, and more, with automatic platform updates distributed as an APK through the Google Play store. This makes it faster for your users to receive updates and easier for you to integrate the newest that Google has to offer. | ||
|
||
|
||
Develop | ||
------- | ||
|
||
Ship higher quality apps. Faster. | ||
Get a headstart on your development with Google services that you can use out-of-the-box. | ||
- Analytics | ||
- Sign in with Google | ||
- Maps | ||
- Places | ||
- Engage | ||
|
||
|
||
|
||
Grow an active user base | ||
------------------------ | ||
|
||
Reach new users and find ways to keep them coming back to your app. | ||
- Google Cloud Messaging | ||
- App Indexing | ||
- App Install Ads | ||
- App Invites | ||
- Earn | ||
|
||
|
||
|
||
Tap into a range of tools to make more money | ||
-------------------------------------------- | ||
|
||
Take a user-by-user approach to monetization that maximizes your app revenue. | ||
- AdMob | ||
- In-App Billing and Subscriptions | ||
- Android Pay | ||
|
||
|
||
|
||
More ways to enhance your app | ||
----------------------------- | ||
|
||
### Use location to power context | ||
|
||
Respond to where users are and what they're doing. Enrich your app with high-accuracy location reporting, geofencing, and activity recognition. | ||
|
||
### Stream content to TVs and speakers | ||
Let users send audio and visual content to any Cast-enabled TV or speaker and control it from their phones or tablets. | ||
|
||
### Add social features to your games | ||
Enhance your games and learn more about your players. Add achievements, leaderboards, saved games, real-time multiplayer, and more. | ||
|
||
### Enhance your app for fitness | ||
Participate in the fitness ecosystem and add high-engagement features to your app. Analyze raw sensor data or take advantage of shared fitness data. | ||
|
||
### Store and manage files in the cloud | ||
Let users interact with nearly any aspect of their Google Drive content, including sharing permissions, file revisions, and connected apps. | ||
|
||
### Support voice actions | ||
Let users engage with your app quickly and conveniently through voice commands. Respond to system actions or add custom actions of your own. | ||
|
66 changes: 66 additions & 0 deletions
66
Components/googleplayservices-ads-42.1001.0.0/component/GettingStarted.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
The Google Mobile Ads SDK is the latest generation in Google mobile advertising, featuring refined ad formats and streamlined APIs for access to mobile ad networks and advertising solutions. The SDK enables mobile app developers to maximize their monetization in native mobile apps. | ||
|
||
Required Android API Levels | ||
=========================== | ||
|
||
We recommend setting your app's *Target Framework* and *Target Android version* to **Android 5.0 (API Level 21)** or higher in your app project settings. | ||
|
||
This Google Play Service SDK's requires a *Target Framework* of at least Android 4.1 (API Level 16) to compile. | ||
|
||
You may still set a lower *Minimum Android version* (as low as Android 2.3 - API Level 9) so your app will run on older versions of Android, however you must ensure you do not use any API's at runtime that are not available on the version of Android your app is running on. | ||
|
||
|
||
Android Manifest | ||
================ | ||
|
||
Some Google Play Services APIs require specific metadata, attributes, permissions or features to be declared in your *AndroidManifest.xml* file. | ||
|
||
These can be added manually to the *AndroidManifest.xml* file, or merged in through the use of assembly level attributes. | ||
|
||
|
||
The Google Mobile Ads SDK requires the *Internet* and *Access Network State* permissions to work correctly. You can add these with the following assembly level attributes: | ||
|
||
```csharp | ||
[assembly: UsesPermission (Android.Manifest.Permission.Internet)] | ||
[assembly: UsesPermission (Android.Manifest.Permission.AccessNetworkState)] | ||
``` | ||
|
||
You must also declare an activity that exists in the SDK by manually adding the following element to your *AndroidManifest.xml* file, inside of the `<application>` `</application>` tags: | ||
|
||
```xml | ||
<activity android:name="com.google.android.gms.ads.AdActivity" | ||
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" | ||
android:theme="@android:style/Theme.Translucent" /> | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
Samples | ||
======= | ||
|
||
You can find a Sample Application within each Google Play Services component. The sample will demonstrate the necessary configuration and some basic API usages. | ||
|
||
|
||
|
||
The AdMobSample in this component demonstrates how to use various ad types from code and xml layouts. | ||
|
||
|
||
|
||
|
||
Learn More | ||
========== | ||
|
||
You can learn more about the various Google Play Services SDKs & APIs by visiting the official [Google APIs for Android][3] documentation | ||
|
||
|
||
You can learn more about the Google Play Services Ad by visiting the official [AdMob for Android](https://developers.google.com/admob/android/quick-start) documentation. | ||
|
||
|
||
|
||
[1]: https://console.developers.google.com/ "Google Developers Console" | ||
[2]: https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/MD5_SHA1/ "Finding your SHA-1 Fingerprints" | ||
[3]: https://developers.google.com/android/ "Google APIs for Android" | ||
[4]: https://firebase.google.com/console/ "Firebase Developer Console" | ||
[5]: https://firebase.google.com/ "Firebase" |
17 changes: 17 additions & 0 deletions
17
Components/googleplayservices-ads-42.1001.0.0/component/License.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
**Xamarin is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may require or install dependencies which are governed by additional licenses.** | ||
|
||
This component depends on [Google Play Services Client Library](https://developers.google.com/android/guides/overview), which is subject to the terms of [Android Software Development Kit License Agreement](http://developer.android.com/sdk/terms.html) | ||
|
||
### Xamarin Component for Google Play Services Client Library | ||
The MIT License (MIT) | ||
|
||
Copyright (c) .NET Foundation Contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
20160427 |
17 changes: 17 additions & 0 deletions
17
Components/googleplayservices-ads-42.1001.0.0/component/Manifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<component format="1" id="googleplayservices-ads" is-shell="true"> | ||
<name>Google Play Services - Ads</name> | ||
<publisher>Xamarin Inc.</publisher> | ||
<publisher-url>http://xamarin.com</publisher-url> | ||
<version>42.1001.0.0</version> | ||
<summary>Make money and advertise across screens and platforms.</summary> | ||
<packages> | ||
<package id="Xamarin.GooglePlayServices.Ads" version="42.1001.0" framework="android" /> | ||
</packages> | ||
<samples> | ||
<sample id="AdMobSample"> | ||
<name>AdMob Sample</name> | ||
<summary>AdMob Sample</summary> | ||
</sample> | ||
</samples> | ||
</component> |
Binary file added
BIN
+7.47 KB
...playservices-ads-42.1001.0.0/component/icons/googleplayservices-ads_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+57.8 KB
...playservices-ads-42.1001.0.0/component/icons/googleplayservices-ads_512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions
56
...rvices-ads-42.1001.0.0/samples/AdMobSample/AdMobSample.UITests/AdMobSample.UITests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?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>{34C2F5ED-29E6-41F7-8898-6C17653AD59D}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>AdMobSample.UITests</RootNamespace> | ||
<AssemblyName>AdMobSample.UITests</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
</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> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="nunit.framework"> | ||
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Xamarin.UITest"> | ||
<HintPath>..\packages\Xamarin.UITest.2.0.1\lib\Xamarin.UITest.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Tests.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\AdMobSample\AdMobSample.csproj"> | ||
<Project>{BCFE5769-5799-42B3-925D-0302CF08F30C}</Project> | ||
<Name>AdMobSample</Name> | ||
<ReferenceOutputAssembly>False</ReferenceOutputAssembly> | ||
<Private>False</Private> | ||
</ProjectReference> | ||
</ItemGroup> | ||
</Project> |
85 changes: 85 additions & 0 deletions
85
...nents/googleplayservices-ads-42.1001.0.0/samples/AdMobSample/AdMobSample.UITests/Tests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
using System; | ||
using System.IO; | ||
using System.Linq; | ||
using NUnit.Framework; | ||
using Xamarin.UITest; | ||
using Xamarin.UITest.Android; | ||
using Xamarin.UITest.Queries; | ||
|
||
namespace AdMobSample.UITests | ||
{ | ||
[TestFixture] | ||
public class Tests | ||
{ | ||
AndroidApp app; | ||
|
||
[SetUp] | ||
public void BeforeEachTest () | ||
{ | ||
app = ConfigureApp | ||
.Android | ||
.ApkFile ("app.apk") | ||
.PreferIdeSettings () | ||
.StartApp (); | ||
} | ||
|
||
//[Test] | ||
public void Repl () | ||
{ | ||
app.Repl (); | ||
} | ||
|
||
[Test] | ||
public void AppLaunches () | ||
{ | ||
app.Screenshot ("Launch"); | ||
} | ||
|
||
[Test] | ||
public void XmlBanner () | ||
{ | ||
app.Screenshot ("Launch"); | ||
|
||
app.Tap (q => q.Text ("Banner in XML")); | ||
|
||
app.Screenshot ("Tap Xml"); | ||
|
||
app.WaitForElement (q => q.Class ("AdView"), timeout: TimeSpan.FromSeconds (10)); | ||
|
||
app.Screenshot ("Ad"); | ||
} | ||
|
||
[Test] | ||
public void CodeBanner () | ||
{ | ||
app.Screenshot ("Launch"); | ||
|
||
app.Tap (q => q.Text ("Banner in Code")); | ||
|
||
app.Screenshot ("Tap Xml"); | ||
|
||
System.Threading.Thread.Sleep (3000); | ||
|
||
app.Screenshot ("Ad"); | ||
} | ||
|
||
[Test] | ||
public void Interstitial () | ||
{ | ||
app.Screenshot ("Launch"); | ||
|
||
app.Tap (q => q.Text ("Interstitial")); | ||
|
||
app.WaitForElement (q => q.Id ("loadButton")); | ||
|
||
app.Screenshot ("Tap Interstitial"); | ||
|
||
app.Tap (q => q.Id ("loadButton")); | ||
|
||
System.Threading.Thread.Sleep (3000); | ||
|
||
app.Screenshot ("Ad"); | ||
} | ||
} | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
...oogleplayservices-ads-42.1001.0.0/samples/AdMobSample/AdMobSample.UITests/packages.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NUnit" version="2.6.4" targetFramework="net45" /> | ||
<package id="Xamarin.UITest" version="2.0.1" targetFramework="net45" /> | ||
</packages> |
Oops, something went wrong.