Forráskód Böngészése

Save point before AdMob integration upgrade

CartBlanche 4 hete
szülő
commit
121bceb898

+ 17 - 0
AdMob/.vscode/launch.json

@@ -0,0 +1,17 @@
+{
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "MonoGame Android Build & Run",
+            "type": "coreclr",
+            "request": "launch",
+            "program": "dotnet",
+            "args": [
+                "build", "AdMob.Android.csproj"
+            ],
+            "cwd": "${workspaceFolder}",
+            "console": "integratedTerminal",
+            "stopAtEntry": false
+        }
+    ]
+}

+ 3 - 0
AdMob/.vscode/settings.json

@@ -0,0 +1,3 @@
+{
+    "dotnet.preferCSharpExtension": true
+}

+ 1 - 1
AdMob/AdMob.Android.csproj

@@ -31,7 +31,7 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="MonoGame.Framework.Android" Version="3.8.4" />
+    <PackageReference Include="MonoGame.Framework.Android" Version="3.8.*" />
     <AndroidJavaSource Include="AdMobHelper.java" />
     <AndroidJavaLibrary Include="GoogleAdMobAdsSdk-4.3.1.jar" />
   </ItemGroup>

+ 24 - 0
AdMob/AdMob.sln

@@ -0,0 +1,24 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.5.2.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdMob.Android", "AdMob.Android.csproj", "{E1DB4DAE-277C-6E59-3E9B-7F8020524FA8}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{E1DB4DAE-277C-6E59-3E9B-7F8020524FA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{E1DB4DAE-277C-6E59-3E9B-7F8020524FA8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{E1DB4DAE-277C-6E59-3E9B-7F8020524FA8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{E1DB4DAE-277C-6E59-3E9B-7F8020524FA8}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {076C6A8B-47FA-4029-9704-7E6661A1FB00}
+	EndGlobalSection
+EndGlobal

+ 1 - 1
AdMob/Game1.cs

@@ -16,7 +16,7 @@ namespace MonoGame.Samples.AdMob
 	/// <summary>
 	/// This is the main type for your game
 	/// </summary>
-	public class Game1 : Microsoft.Xna.Framework.Game
+	public class Game1 : Game
 	{
 		public static Game1 Instance { get; private set; }
 		

+ 5 - 0
AdMob/Resources/values/strings.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="hello">Hello MonoGame AdMob!</string>
+    <string name="app_name">MonoGame AdMob Sample</string>
+</resources>