0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-22 03:05:11 +00:00

ah yeah, It's all coming together

This commit is contained in:
X1nto 2020-08-05 20:20:19 +04:00
parent 122febcad2
commit e9695caf76
5 changed files with 35 additions and 4 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
build/
out/
app/src/main/java/com/vanced/manager/core/base/DummyJava.java
app/google-services.json
local.properties
/.github/
*.iml

View file

@ -2,6 +2,7 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 29
@ -76,12 +77,13 @@ dependencies {
implementation 'com.google.android.material:material:1.2.0-rc01'
// Other
implementation 'com.crowdin.platform:mobile-sdk:1.1.6'
implementation 'com.github.topjohnwu.libsu:core:3.0.1'
implementation 'com.mindorks.android:prdownloader:0.6.0'
implementation 'com.beust:klaxon:5.3'
implementation 'com.crowdin.platform:mobile-sdk:1.1.6'
implementation 'com.github.kittinunf.fuel:fuel:2.2.3'
implementation 'com.github.kittinunf.fuel:fuel-json:2.2.3'
implementation 'com.github.kittinunf.fuel:fuel-coroutines:2.2.3'
implementation 'com.github.kittinunf.fuel:fuel-json:2.2.3'
implementation 'com.github.topjohnwu.libsu:core:3.0.1'
implementation 'com.google.firebase:firebase-messaging:20.2.4'
implementation 'com.mindorks.android:prdownloader:0.6.0'
}

View file

@ -55,6 +55,20 @@
</provider>
<service
android:name=".core.firebase.CloudMessaging"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_stat_name" />
<service android:name=".core.installer.SplitInstallerService" />
<service android:name=".core.installer.RootSplitInstallerService" />
<service android:name=".core.installer.SplitInstaller" />

View file

@ -0,0 +1,13 @@
package com.vanced.manager.core.firebase
import android.util.Log
import com.google.firebase.messaging.FirebaseMessagingService
class CloudMessaging: FirebaseMessagingService() {
override fun onNewToken(p0: String) {
super.onNewToken(p0)
Log.d("VMC", "Generated new token: $p0")
}
}

View file

@ -10,6 +10,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files