Skip to content

Commit

Permalink
Create test app.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kravchuk committed Feb 14, 2019
1 parent 661ebbd commit 81f77b3
Show file tree
Hide file tree
Showing 11 changed files with 3,651 additions and 3,017 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?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>
Expand Down Expand Up @@ -30,6 +30,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
<AotAssemblies>false</AotAssemblies>
<EnableLLVM>false</EnableLLVM>
<BundleAssemblies>false</BundleAssemblies>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -42,6 +45,9 @@
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<Reference Include="IronSource-Android_v6.7.12">
<HintPath>.\IronSource-Android_v6.7.12.dll</HintPath>
</Reference>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -60,11 +66,15 @@
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RewardedVideoListener.cs" />
<Compile Include="RewardedVideoService.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
<None Include="Properties\AndroidManifest.xml" />
<None Include="Properties\AndroidManifest.xml">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\Tabbar.axml" />
Expand All @@ -85,17 +95,17 @@
<AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\drawable\" />
<Folder Include="Resources\drawable-hdpi\" />
<Folder Include="Resources\drawable-xhdpi\" />
<Folder Include="Resources\drawable-xxhdpi\" />
<Folder Include="Resources\drawable-xxxhdpi\" />
<Folder Include="Resources\drawable\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\IronSourceIssue\IronSourceIssue.csproj">
<Project>{BC25BF68-9D6D-4BD7-B414-D4C82E774985}</Project>
<Name>IronSourceIssue</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
35 changes: 27 additions & 8 deletions IronSourceIssue/IronSourceIssue.Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using System;

using Android.App;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Com.Ironsource.Mediationsdk;
using Com.Ironsource.Mediationsdk.Config;
using Com.Ironsource.Mediationsdk.Integration;
using Com.Ironsource.Mediationsdk.Utils;

namespace IronSourceIssue.Droid
{
Expand All @@ -18,8 +17,28 @@ protected override void OnCreate(Bundle savedInstanceState)
ToolbarResource = Resource.Layout.Toolbar;

base.OnCreate(savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
Xamarin.Forms.Forms.Init(this, savedInstanceState);

ConfigFile.GetConfigFile().SetPluginData("Xamarin", IronSourceUtils.SDKVersion, "9.1.5.0");
IronSource.SetRewardedVideoListener(new RewardedVideoListener());
IronSource.SetUserId("892aa79c4cf54aa0a231ed3e23471a1b");
IronSource.Init(this, "88fbfe65", IronSource.AD_UNIT.RewardedVideo);
IronSource.ShouldTrackNetworkState(this, true);
IntegrationHelper.ValidateIntegration(this);

LoadApplication(new App(new RewardedVideoService()));
}

protected override void OnPause()
{
base.OnPause();
IronSource.OnPause(this);
}

protected override void OnResume()
{
base.OnResume();
IronSource.OnResume(this);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
<?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="com.companyname.IronSourceIssue.Android">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="27" />
<application android:label="IronSourceIssue.Android"></application>
</manifest>
<?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="com.companyname.IronSourceIssue.Android" android:installLocation="auto">
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:label="IronSourceIssue.Android">
<activity android:name="com.ironsource.sdk.controller.ControllerActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true" />
<activity android:name="com.ironsource.sdk.controller.InterstitialActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent" />
<activity android:name="com.ironsource.sdk.controller.OpenUrlActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent" />
</application>
</manifest>
Loading

0 comments on commit 81f77b3

Please sign in to comment.