diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..72bcb91
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "cSpell.words": ["Admob"]
+}
diff --git a/App_Resources/Android/app.gradle b/App_Resources/Android/app.gradle
index 6625a2e..704ccf6 100644
--- a/App_Resources/Android/app.gradle
+++ b/App_Resources/Android/app.gradle
@@ -10,11 +10,11 @@ android {
defaultConfig {
minSdkVersion 26
- targetSdkVersion 31
+ targetSdkVersion 33
// Version Information
- versionCode 6
- versionName "1.0.6"
+ versionCode 7
+ versionName "1.0.7"
generatedDensities = []
}
diff --git a/App_Resources/Android/src/google-services.json b/App_Resources/Android/src/google-services.json
new file mode 100644
index 0000000..f58ac4e
--- /dev/null
+++ b/App_Resources/Android/src/google-services.json
@@ -0,0 +1,40 @@
+{
+ "project_info": {
+ "project_number": "996189842385",
+ "project_id": "whatsapp-sender-f8293",
+ "storage_bucket": "whatsapp-sender-f8293.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:996189842385:android:60a9685124543555f4cef0",
+ "android_client_info": {
+ "package_name": "com.kang.cahya.apps.whatsappsender"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "996189842385-vuqb2g1vbdvhse6adcd8t4falfi5g5sh.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyA9MgRnyIDX_E8wEAbqU23zeWRqSjCqfuM"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "996189842385-vuqb2g1vbdvhse6adcd8t4falfi5g5sh.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ }
+ },
+ "admob_app_id": "ca-app-pub-1640120316722376~9613851970"
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/App_Resources/Android/src/main/AndroidManifest.xml b/App_Resources/Android/src/main/AndroidManifest.xml
index d8e2083..a6ec0b3 100644
--- a/App_Resources/Android/src/main/AndroidManifest.xml
+++ b/App_Resources/Android/src/main/AndroidManifest.xml
@@ -20,6 +20,10 @@
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:hardwareAccelerated="true">
+
+ xmlns="http://schemas.nativescript.org/tns.xsd"
+ xmlns:ui="@nativescript/firebase-admob">
@@ -14,6 +15,14 @@
+
+
+
+
@@ -26,19 +35,35 @@
-
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/app.js b/app/app.js
index 023af4e..e84ede6 100644
--- a/app/app.js
+++ b/app/app.js
@@ -1,6 +1,10 @@
-import { Application } from '@nativescript/core'
+import { Application } from "@nativescript/core";
+import { firebase } from "@nativescript/firebase-core";
+import { Admob } from "@nativescript/firebase-admob";
-Application.run({ moduleName: 'app-root' })
+Application.run({ moduleName: "app-root" });
+firebase().initializeApp();
+Admob.init();
/*
Do not place any code after the application has been started as it will not
diff --git a/app/history/history-page.xml b/app/history/history-page.xml
index 4f03bff..a9f93d4 100644
--- a/app/history/history-page.xml
+++ b/app/history/history-page.xml
@@ -1,7 +1,8 @@
+ xmlns="http://schemas.nativescript.org/tns.xsd"
+ xmlns:ui="@nativescript/firebase-admob">
@@ -26,5 +27,12 @@
+
+
+
\ No newline at end of file
diff --git a/app/home/home-page.xml b/app/home/home-page.xml
index d3efa3f..c2e7071 100644
--- a/app/home/home-page.xml
+++ b/app/home/home-page.xml
@@ -2,10 +2,11 @@
actionBarHidden="true"
loaded="onLoaded"
navigatingTo="onNavigatingTo"
- xmlns="http://schemas.nativescript.org/tns.xsd">
+ xmlns="http://schemas.nativescript.org/tns.xsd"
+ xmlns:ui="@nativescript/firebase-admob">
-
+
@@ -13,6 +14,13 @@
+
+
+
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 1453917..9619be0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,11 +11,13 @@
"@nativescript-community/ui-material-snackbar": "^7.1.3",
"@nativescript-use/nativescript-clipboard": "^0.0.3",
"@nativescript/core": "~8.5.0",
+ "@nativescript/firebase-admob": "^3.1.3",
+ "@nativescript/firebase-core": "^3.1.3",
"@nativescript/social-share": "^2.3.0",
"@nativescript/theme": "~3.0.2"
},
"devDependencies": {
- "@nativescript/android": "8.5.0",
+ "@nativescript/android": "8.5.1",
"@nativescript/webpack": "~5.0.14"
}
},
@@ -414,9 +416,9 @@
"integrity": "sha512-UlUcVv3QWgCJIPrPBC9hIX0Mgo58K+SQ65w2aKedJIYgMXsa5peSHUb8IoDTUb8DeQZWBWRnrudJF3mIybkfIA=="
},
"node_modules/@nativescript/android": {
- "version": "8.5.0",
- "resolved": "https://registry.npmjs.org/@nativescript/android/-/android-8.5.0.tgz",
- "integrity": "sha512-HktiT5gWXdMxe4j6zoU1Zj2V5uxg67XG3TETOFg7m/PqAgWoti4czAa/VoKnHfk1FJ/zr+LWJTNxts/mGJ7DxA==",
+ "version": "8.5.1",
+ "resolved": "https://registry.npmjs.org/@nativescript/android/-/android-8.5.1.tgz",
+ "integrity": "sha512-Kn11rd2y9XcCY+R72+FSxDGvZaiXcHqTvP+M9O9Ns0tvJaWXLsf6MBC5SSA1rcxGRpNkUaGcBpZKF76pVigorw==",
"dev": true
},
"node_modules/@nativescript/core": {
@@ -433,6 +435,16 @@
"tslib": "^2.0.0"
}
},
+ "node_modules/@nativescript/firebase-admob": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@nativescript/firebase-admob/-/firebase-admob-3.1.3.tgz",
+ "integrity": "sha512-/BlugaJ1HuV2lDVHneLdbum4j7UbTqciPYxhC1QfqllIToumnhyKQmuLVA9KcWhkwsHioK6bFCtPeFdUDUh4Xw=="
+ },
+ "node_modules/@nativescript/firebase-core": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@nativescript/firebase-core/-/firebase-core-3.1.3.tgz",
+ "integrity": "sha512-7zlmSDaBAcyV6wjt1fhiUxtJ+6xsioccEnSIDxpweFpZN1ifgMX8HmeTCnM/wWZuKo15kri4ldKhBSru3qzfYA=="
+ },
"node_modules/@nativescript/hook": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@nativescript/hook/-/hook-2.0.0.tgz",
@@ -4181,20 +4193,6 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz",
"integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w=="
},
- "node_modules/typescript": {
- "version": "5.1.6",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
- "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
- "dev": true,
- "peer": true,
- "bin": {
- "tsc": "bin/tsc",
- "tsserver": "bin/tsserver"
- },
- "engines": {
- "node": ">=14.17"
- }
- },
"node_modules/universalify": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
@@ -5088,9 +5086,9 @@
"integrity": "sha512-UlUcVv3QWgCJIPrPBC9hIX0Mgo58K+SQ65w2aKedJIYgMXsa5peSHUb8IoDTUb8DeQZWBWRnrudJF3mIybkfIA=="
},
"@nativescript/android": {
- "version": "8.5.0",
- "resolved": "https://registry.npmjs.org/@nativescript/android/-/android-8.5.0.tgz",
- "integrity": "sha512-HktiT5gWXdMxe4j6zoU1Zj2V5uxg67XG3TETOFg7m/PqAgWoti4czAa/VoKnHfk1FJ/zr+LWJTNxts/mGJ7DxA==",
+ "version": "8.5.1",
+ "resolved": "https://registry.npmjs.org/@nativescript/android/-/android-8.5.1.tgz",
+ "integrity": "sha512-Kn11rd2y9XcCY+R72+FSxDGvZaiXcHqTvP+M9O9Ns0tvJaWXLsf6MBC5SSA1rcxGRpNkUaGcBpZKF76pVigorw==",
"dev": true
},
"@nativescript/core": {
@@ -5106,6 +5104,16 @@
"tslib": "^2.0.0"
}
},
+ "@nativescript/firebase-admob": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@nativescript/firebase-admob/-/firebase-admob-3.1.3.tgz",
+ "integrity": "sha512-/BlugaJ1HuV2lDVHneLdbum4j7UbTqciPYxhC1QfqllIToumnhyKQmuLVA9KcWhkwsHioK6bFCtPeFdUDUh4Xw=="
+ },
+ "@nativescript/firebase-core": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@nativescript/firebase-core/-/firebase-core-3.1.3.tgz",
+ "integrity": "sha512-7zlmSDaBAcyV6wjt1fhiUxtJ+6xsioccEnSIDxpweFpZN1ifgMX8HmeTCnM/wWZuKo15kri4ldKhBSru3qzfYA=="
+ },
"@nativescript/hook": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@nativescript/hook/-/hook-2.0.0.tgz",
@@ -5481,8 +5489,7 @@
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz",
"integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@webpack-cli/info": {
"version": "1.5.0",
@@ -5497,8 +5504,7 @@
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz",
"integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@xtuc/ieee754": {
"version": "1.2.0",
@@ -5530,15 +5536,13 @@
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz",
"integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"acorn-private-class-elements": {
"version": "0.2.7",
"resolved": "https://registry.npmjs.org/acorn-private-class-elements/-/acorn-private-class-elements-0.2.7.tgz",
"integrity": "sha512-+GZH2wOKNZOBI4OOPmzpo4cs6mW297sn6fgIk1dUI08jGjhAaEwvC39mN2gJAg2lmAQJ1rBkFqKWonL3Zz6PVA==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"acorn-private-methods": {
"version": "0.3.3",
@@ -5591,8 +5595,7 @@
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
"integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"ansi-colors": {
"version": "4.1.3",
@@ -6575,8 +6578,7 @@
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",
"integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"ignore": {
"version": "5.2.4",
@@ -7252,8 +7254,7 @@
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz",
"integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-modules-local-by-default": {
"version": "4.0.3",
@@ -7825,13 +7826,6 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz",
"integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w=="
},
- "typescript": {
- "version": "5.1.6",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
- "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
- "dev": true,
- "peer": true
- },
"universalify": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
@@ -8188,8 +8182,7 @@
"version": "7.5.9",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"y18n": {
"version": "5.0.8",
diff --git a/package.json b/package.json
index 957fd00..313222a 100644
--- a/package.json
+++ b/package.json
@@ -7,11 +7,13 @@
"@nativescript-community/ui-material-snackbar": "^7.1.3",
"@nativescript-use/nativescript-clipboard": "^0.0.3",
"@nativescript/core": "~8.5.0",
+ "@nativescript/firebase-admob": "^3.1.3",
+ "@nativescript/firebase-core": "^3.1.3",
"@nativescript/social-share": "^2.3.0",
"@nativescript/theme": "~3.0.2"
},
"devDependencies": {
- "@nativescript/android": "8.5.0",
+ "@nativescript/android": "8.5.1",
"@nativescript/webpack": "~5.0.14"
}
}