First commit

This commit is contained in:
MaticIvesic committed 2025-03-01 13:27:01 +01:00
commit 3f9baae36e
975 files changed
+242181

No files matched your search

@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 3ac8f17c39391cc40ac03513ccf06a95
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.unity.ads" android:versionName="1.0" android:versionCode="1">
<application>
<uses-library android:required="false" android:name="org.apache.http.legacy" />
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-2626773788355001~6567280609" />
<meta-data android:name="com.google.unity.ads.UNITY_VERSION" android:value="2022.3.26f1" />
</application>
</manifest>
@@ -0,0 +1,5 @@
android {
packagingOptions {
pickFirst "META-INF/kotlinx_coroutines_core.version"
}
}
@@ -0,0 +1,2 @@
target=android-31
android.library=true
@@ -0,0 +1,97 @@
// Copyright (C) 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import groovy.util.XmlSlurper
import groovy.xml.XmlUtil
import java.util.zip.ZipEntry
import java.util.zip.ZipOutputStream
configurations {
// Configuration used to resolve the artifacts of dependencies.
aarArtifacts.extendsFrom implementation
}
/**
* Validates the Unity GMA plugin dependencies.
* Add the following snippet to Assets/Plugins/Android/mainTemplate.gradle in the Unity Editor or
* unityLibrary/build.gradle in an Android project to use this script:
* <pre>{@code
* gradle.projectsEvaluated {
* apply from: 'GoogleMobileAdsPlugin.androidlib/validate_dependencies.gradle'
* }
* }</pre>
*/
task validateDependencies {
def expandedArchiveDirectory
// List of artifacts resolved from the aarArtifacts configuration.
project.configurations.aarArtifacts.
resolvedConfiguration.lenientConfiguration.
getArtifacts(Specs.satisfyAll()).findResults {
ResolvedArtifact artifact ->
File artifactTargetFile = new File(artifact.file.parent , artifact.file.name)
// Desired artifact - com.google.android.gms:play-services-ads-lite:22.4.0
// Group ID - com.google.android.gms
// Artifact ID - play-services-ads-lite
// Since Gradle has different naming convention for the same artifact in
// * modules-2 cache - play-services-ads-lite-22.4.0.aar
// * transforms-2 cache - com.google.android.gms.play-services-ads-lite-22.4.0
// we look for the common segment.
if (artifact.name.contains("play-services-ads-lite")) {
// Explode the archive to a temporary directory.
FileTree expandedArchive = project.zipTree(artifactTargetFile)
expandedArchive.forEach { File androidManifest ->
if (androidManifest.getName() == "AndroidManifest.xml") {
def xml = new XmlSlurper().parse(androidManifest)
def propertyNode = xml.depthFirst().find { it.name() == 'property' }
if (propertyNode) {
// Replace the <property> node with a comment.
propertyNode.replaceNode {
mkp.comment 'android.adservices.AD_SERVICES_CONFIG property'\
+ ' removed by GoogleMobileAds Unity plugin - Release notes: '\
+ 'https://github.com/googleads/googleads-mobile-unity/releases/'\
+ 'tag/v8.6.0'
}
}
def updatedXml = XmlUtil.serialize(xml)
androidManifest.setWritable(true)
androidManifest.text = updatedXml
expandedArchiveDirectory = androidManifest.parent
}
}
// Update the artifact archive.
artifactTargetFile.withOutputStream { outputStream ->
def zipStream = new ZipOutputStream(outputStream)
file(expandedArchiveDirectory).eachFileRecurse { file ->
if (file.isFile()) {
def entry = new ZipEntry(file.name)
zipStream.putNextEntry(entry)
file.withInputStream { zipStream << it }
zipStream.closeEntry()
}
}
zipStream.close()
}
}
}
// Clean up the temporary directory.
if (expandedArchiveDirectory) delete expandedArchiveDirectory
}
// Run the update task before unityLibrary project is built.
project(':unityLibrary:GoogleMobileAdsPlugin.androidlib') {
tasks.named('preBuild') {
dependsOn validateDependencies
}
}
@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 684c5d702e414e14bb11d6c38d7bd485
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This file was automatically generated by the Google Play Games plugin for Unity
Do not edit. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.example.games.mainlibproj"
android:versionCode="1"
android:versionName="1.0" >
<!-- Required for Nearby Connections -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<application>
<!-- Required for Nearby Connections API -->
<meta-data android:name="com.google.android.gms.nearby.connection.SERVICE_ID"
android:value="com.MoxiFoxi.PlaneRun" />
<!-- The space in these forces it to be interpreted as a string vs. int -->
<meta-data android:name="com.google.android.gms.games.APP_ID"
android:value="\u003542756239918" />
<!-- Keep track of which plugin is being used -->
<meta-data android:name="com.google.android.gms.games.unityVersion"
android:value="\u0032.0.0" />
<activity android:name="com.google.games.bridge.NativeBridgeActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
</application>
</manifest>
@@ -0,0 +1,2 @@
target=android-16
android.library=true
Binary file not shown.
+81
View File
@@ -0,0 +1,81 @@
fileFormatVersion: 2
guid: 0c85583a36b345049dde717aa0c54fa8
labels:
- gvh
- gvh_version-9.2.0
- gvhp_exportpath-Plugins/Android/googlemobileads-unity.aar
timeCreated: 1480838400
PluginImporter:
serializedVersion: 1
iconMap: {}
executionOrder: {}
isPreloaded: 0
platformData:
Android:
enabled: 1
settings:
CPU: AnyCPU
Any:
enabled: 0
settings: {}
Editor:
enabled: 1
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
Linux:
enabled: 1
settings:
CPU: x86
Linux64:
enabled: 1
settings:
CPU: x86_64
LinuxUniversal:
enabled: 1
settings:
CPU: AnyCPU
OSXIntel:
enabled: 1
settings:
CPU: x86
OSXIntel64:
enabled: 1
settings:
CPU: x86_64
OSXUniversal:
enabled: 1
settings:
CPU: AnyCPU
Web:
enabled: 0
settings: {}
WebStreamed:
enabled: 0
settings: {}
Win:
enabled: 1
settings:
CPU: x86
Win64:
enabled: 1
settings:
CPU: x86_64
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
iOS:
enabled: 0
settings:
CompileFlags:
FrameworkDependencies:
tvOS:
enabled: 0
settings:
CompileFlags:
FrameworkDependencies:
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M
org.gradle.parallel=true
unityStreamingAssets=**STREAMING_ASSETS**
# Android Resolver Properties Start
android.useAndroidX=true
android.enableJetifier=true
# Android Resolver Properties End
**ADDITIONAL_PROPERTIES**
+7
View File
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d0aa319fe0d7b7d40a02056dc9d8d5d5
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,61 @@
apply plugin: 'com.android.library'
**APPLY_PLUGINS**
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:12
implementation 'com.google.android.gms:play-services-ads:23.2.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:15
implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:22
implementation 'com.google.android.ump:user-messaging-platform:2.2.0' // Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7
implementation 'com.google.games:gpgs-plugin-support:2.0.0' // Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11
implementation 'com.ironsource.sdk:mediationsdk:8.4.0' // Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:8
// Android Resolver Dependencies End
**DEPS**}
// Android Resolver Exclusions Start
android {
packagingOptions {
exclude ('/lib/armeabi/*' + '*')
exclude ('/lib/mips/*' + '*')
exclude ('/lib/mips64/*' + '*')
exclude ('/lib/x86/*' + '*')
exclude ('/lib/x86_64/*' + '*')
}
}
// Android Resolver Exclusions End
android {
ndkPath "**NDKPATH**"
compileSdkVersion **APIVERSION**
buildToolsVersion '**BUILDTOOLS**'
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
defaultConfig {
minSdkVersion **MINSDKVERSION**
targetSdkVersion **TARGETSDKVERSION**
ndk {
abiFilters **ABIFILTERS**
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
}
lintOptions {
abortOnError false
}
aaptOptions {
noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
}**PACKAGING_OPTIONS**
}
**IL_CPP_BUILD_SETUP**
**SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**
+7
View File
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f233a949893a3e14d9121856c47312ff
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,36 @@
pluginManagement {
repositories {
**ARTIFACTORYREPOSITORY**
gradlePluginPortal()
google()
mavenCentral()
}
}
include ':launcher', ':unityLibrary'
**INCLUDES**
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
**ARTIFACTORYREPOSITORY**
google()
mavenCentral()
// Android Resolver Repos Start
def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
maven {
url "https://maven.google.com/" // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:12, Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7, Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:15, Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:22
}
maven {
url (unityProjectPath + "/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository") // Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11
}
maven {
url "https://android-sdk.is.com/" // Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:8
}
mavenLocal()
// Android Resolver Repos End
flatDir {
dirs "${project(':unityLibrary').projectDir}/libs"
}
}
}
+7
View File
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a36707b45f5ed0c4d8ba31576d0e8dd2
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: