Skip to content

Commit fdee208

Browse files
committed
Merge branch 'master' into mc/count
2 parents 3a2fc21 + 9054a8b commit fdee208

File tree

375 files changed

+5619
-5398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

375 files changed

+5619
-5398
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[*.{java,kt}]
22
max_line_length = 120
3+
indent_size = 2

.github/workflows/android.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- name: set up JDK 11
13-
uses: actions/setup-java@v1
14-
with:
15-
java-version: 11
11+
- uses: actions/checkout@v4
1612
- name: Check Snippets
1713
run: python scripts/checksnippets.py
18-
- name: Install NDK
19-
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
14+
- name: set up JDK 17
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: 17
18+
distribution: temurin
2019
- name: Build with Gradle (Pull Request)
2120
run: ./build_pull_request.sh
2221
if: github.event_name == 'pull_request'

admob/app/build.gradle

Lines changed: 0 additions & 42 deletions
This file was deleted.

admob/app/build.gradle.kts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
plugins {
2+
id("com.android.application")
3+
id("kotlin-android")
4+
id("com.google.gms.google-services")
5+
}
6+
7+
android {
8+
namespace = "com.google.firebase.example.admob"
9+
compileSdk = 36
10+
11+
defaultConfig {
12+
applicationId = "com.google.firebase.example.admob"
13+
minSdk = 23
14+
targetSdk = 36
15+
versionCode = 1
16+
versionName = "1.0"
17+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
18+
multiDexEnabled = true
19+
}
20+
buildTypes {
21+
getByName("release") {
22+
isMinifyEnabled = false
23+
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
24+
}
25+
}
26+
compileOptions {
27+
sourceCompatibility = JavaVersion.VERSION_17
28+
targetCompatibility = JavaVersion.VERSION_17
29+
}
30+
kotlinOptions {
31+
jvmTarget = "17"
32+
}
33+
}
34+
35+
dependencies {
36+
implementation("androidx.legacy:legacy-support-v4:1.0.0")
37+
implementation("androidx.browser:browser:1.5.0")
38+
implementation("androidx.appcompat:appcompat:1.7.1")
39+
implementation("com.google.firebase:firebase-ads:23.6.0")
40+
implementation("androidx.constraintlayout:constraintlayout:2.2.1")
41+
implementation("androidx.multidex:multidex:2.0.1")
42+
43+
// [START gradle_play_config]
44+
implementation("com.google.android.gms:play-services-ads:24.7.0")
45+
// [END gradle_play_config]
46+
47+
// Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom)
48+
implementation(platform("com.google.firebase:firebase-bom:34.4.0"))
49+
50+
// For an optimal experience using AdMob, add the Firebase SDK
51+
// for Google Analytics. This is recommended, but not required.
52+
implementation("com.google.firebase:firebase-analytics")
53+
}

admob/app/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# By default, the flags in this file are appended to flags specified
33
# in /Users/ianbarber/Library/Android/sdk/tools/proguard/proguard-android.txt
44
# You can edit the include path and order by changing the proguardFiles
5-
# directive in build.gradle.
5+
# directive in build.gradle.kts.
66
#
77
# For more details, see
88
# http://developer.android.com/guide/developing/tools/proguard.html

admob/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools">
34

45
<application
56
android:allowBackup="true"
67
android:icon="@mipmap/ic_launcher"
78
android:label="@string/app_name"
89
android:supportsRtl="true"
910
android:theme="@style/AppTheme">
11+
1012
<activity android:name="com.google.firebase.example.admob.MainActivity"
1113
android:exported="true">
1214
<intent-filter>

admob/build.gradle

Lines changed: 0 additions & 25 deletions
This file was deleted.

admob/build.gradle.kts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
plugins {
4+
id("com.android.application") version "8.13.0" apply false
5+
id("com.android.library") version "8.13.0" apply false
6+
id("org.jetbrains.kotlin.android") version "2.2.21" apply false
7+
id("com.google.gms.google-services") version "4.4.4" apply false
8+
}
9+
10+
allprojects {
11+
repositories {
12+
mavenLocal()
13+
google()
14+
mavenCentral()
15+
}
16+
}
17+
18+
tasks {
19+
register("clean", Delete::class) {
20+
delete(rootProject.buildDir)
21+
}
22+
}

admob/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
1212
org.gradle.jvmargs=-Xmx1536m
13+
android.useAndroidX=true
1314

1415
# When configured, Gradle will run in incubating parallel mode.
1516
# This option should only be used with decoupled projects. More details, visit
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)