mirror of
https://github.com/Xtao-Labs/FirebaseCloudMessaging-Android.git
synced 2025-01-30 23:18:56 +00:00
Update dependencies
This commit is contained in:
parent
6ec05b2ac5
commit
f555f23195
2
.gitignore
vendored
2
.gitignore
vendored
@ -48,4 +48,6 @@ proguard/
|
||||
# Keystore files
|
||||
*.jks
|
||||
|
||||
.externalNativeBuild
|
||||
|
||||
google-services.json
|
@ -2,9 +2,9 @@
|
||||
FCM is just a demo of Android Application which implement Firebase Cloud Messaging. It made for Google I/O Extended 2016 Bangkok
|
||||
|
||||
## Prerequisites
|
||||
* Supported Android 2.3 (Gingerbread) and newer
|
||||
* Google Play services 10.0.1 or newer
|
||||
* Android Studio 1.5 or higher
|
||||
* Supported Android 4.0 (Ice cream) and newer
|
||||
* Google Play services 11.0.2 or newer
|
||||
* Android Studio 2.3 or higher
|
||||
* google-services.json in app-level folder
|
||||
|
||||
## Features
|
||||
|
@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion 25
|
||||
buildToolsVersion "25.0.2"
|
||||
buildToolsVersion "26.0.0"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.example.fcm"
|
||||
@ -16,14 +16,23 @@ android {
|
||||
release {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
debug {
|
||||
splits.abi.enable = false
|
||||
splits.density.enable = false
|
||||
aaptOptions.cruncherEnabled = false
|
||||
}
|
||||
}
|
||||
dexOptions {
|
||||
preDexLibraries true
|
||||
maxProcessCount 8
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.android.support:appcompat-v7:25.1.1'
|
||||
compile 'com.google.firebase:firebase-messaging:10.2.0'
|
||||
compile "com.android.support:appcompat-v7:$supportLibraryVersion"
|
||||
compile "com.google.firebase:firebase-messaging:$firebaseLibraryVersion"
|
||||
}
|
||||
|
||||
apply plugin: 'com.google.gms.google-services'
|
12
app/proguard-rules.pro
vendored
12
app/proguard-rules.pro
vendored
@ -1,4 +1,14 @@
|
||||
-keepattributes Signature
|
||||
-keepattributes *Annotation*
|
||||
-keepattributes EnclosingMethod
|
||||
-keepattributes InnerClasses
|
||||
-keepattributes InnerClasses
|
||||
|
||||
-assumenosideeffects class android.util.Log {
|
||||
public static boolean isLoggable(java.lang.String, int);
|
||||
public static int v(...);
|
||||
public static int i(...);
|
||||
public static int w(...);
|
||||
public static int d(...);
|
||||
public static int e(...);
|
||||
public static int wtf(...);
|
||||
}
|
@ -91,6 +91,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
jNotification.put("sound", "default");
|
||||
jNotification.put("badge", "1");
|
||||
jNotification.put("click_action", "OPEN_ACTIVITY_1");
|
||||
jNotification.put("icon", "ic_launcher");
|
||||
|
||||
jData.put("picture_url", "http://opsbug.com/static/google-io.jpg");
|
||||
|
||||
|
29
build.gradle
29
build.gradle
@ -1,21 +1,28 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.3.0-beta4'
|
||||
classpath 'com.google.gms:google-services:3.0.0'
|
||||
}
|
||||
repositories {
|
||||
maven { url 'https://maven.google.com' }
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:2.3.3'
|
||||
classpath 'com.google.gms:google-services:3.1.0'
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
repositories {
|
||||
maven { url 'https://maven.google.com' }
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
|
||||
ext {
|
||||
supportLibraryVersion = '25.4.0'
|
||||
firebaseLibraryVersion = '11.0.2'
|
||||
}
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
||||
#Mon Dec 28 10:00:20 PST 2015
|
||||
#Thu May 18 21:45:47 ICT 2017
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip
|
||||
|
Loading…
Reference in New Issue
Block a user