mirror of
https://github.com/Xtao-Labs/FirebaseCloudMessaging-Android.git
synced 2025-01-30 15:08:38 +00:00
Migrate to Android X
This commit is contained in:
parent
1b9b187145
commit
e6359104c4
@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion compileAndTargetSdkVersion
|
||||
buildToolsVersion '28.0.3'
|
||||
buildToolsVersion '29.0.0'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.example.fcm"
|
||||
@ -36,11 +36,11 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.android.support:appcompat-v7:$supportLibraryVersion") {
|
||||
implementation('androidx.appcompat:appcompat:1.0.0') {
|
||||
force = true
|
||||
}
|
||||
implementation 'com.google.firebase:firebase-core:16.0.9'
|
||||
implementation 'com.google.firebase:firebase-messaging:18.0.0'
|
||||
implementation 'com.google.firebase:firebase-core:17.0.0'
|
||||
implementation 'com.google.firebase:firebase-messaging:19.0.1'
|
||||
}
|
||||
|
||||
apply plugin: 'com.google.gms.google-services'
|
@ -12,7 +12,7 @@ import android.graphics.Color;
|
||||
import android.media.RingtoneManager;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
import androidx.core.app.NotificationCompat;
|
||||
import android.util.Log;
|
||||
|
||||
import com.google.firebase.messaging.FirebaseMessagingService;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.example.fcm;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import android.widget.TextView;
|
||||
|
||||
public class SecondActivity extends AppCompatActivity {
|
||||
|
@ -4,7 +4,7 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.4.0'
|
||||
classpath 'com.android.tools.build:gradle:3.4.1'
|
||||
classpath 'com.google.gms:google-services:4.2.0'
|
||||
}
|
||||
}
|
||||
@ -21,6 +21,5 @@ task clean(type: Delete) {
|
||||
}
|
||||
|
||||
ext {
|
||||
supportLibraryVersion = '28.0.0'
|
||||
compileAndTargetSdkVersion = 28
|
||||
}
|
@ -15,4 +15,6 @@
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||
# org.gradle.parallel=true
|
||||
# org.gradle.parallel=true
|
||||
android.enableJetifier=true
|
||||
android.useAndroidX=true
|
Loading…
Reference in New Issue
Block a user