Skip to content

Commit

Permalink
package name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowtham committed Sep 21, 2020
1 parent c89fd1f commit ae9ced7
Show file tree
Hide file tree
Showing 16 changed files with 7,634 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.gowtham.fcm_sender_kotlin">
package="com.fcmsender.fcm_sender_kotlin">

<application
android:allowBackup="true"
Expand All @@ -9,7 +9,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name="com.fcmsender.fcm_sender_kotlin.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.gowtham.fcm_sender_kotlin
package com.fcmsender.fcm_sender_kotlin

import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.gowtham.library.FCMSender
import com.fcmsender.FCMSender
import kotlinx.android.synthetic.main.activity_main.*
import org.json.JSONObject

Expand All @@ -21,10 +21,10 @@ class MainActivity : AppCompatActivity(), FCMSender.ResponseListener {
val data = JSONObject()
data.put("title", "Message from Jon")
data.put("message", "Click to view..")
data.put("type", "new_message")
data.put("type", "new_logged_in")
val push = FCMSender.Builder()
.serverKey("your serverkey")
.to("/topics/myTopic") //either topic or user registration token
.serverKey("Server key")
.to("topic/testTopic") //either topic or user registration token
.responseListener(this)
// .setTimeToLive(30) // 0 to 2,419,200 seconds (4 weeks)
// .setDryRun(false) //test a request without actually sending a message.
Expand All @@ -35,10 +35,12 @@ class MainActivity : AppCompatActivity(), FCMSender.ResponseListener {

override fun onSuccess(response: String) {
Log.d("onSuccess",response)
Toast.makeText(this, "onSuccess", Toast.LENGTH_SHORT).show()
}

override fun onFailure(errorCode: Int) {
Log.d("onFailure","s$errorCode")
Toast.makeText(this, "onFailure", Toast.LENGTH_SHORT).show()
}

}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {

}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
955 changes: 955 additions & 0 deletions hs_err_pid19049.log

Large diffs are not rendered by default.

950 changes: 950 additions & 0 deletions hs_err_pid19109.log

Large diffs are not rendered by default.

956 changes: 956 additions & 0 deletions hs_err_pid19234.log

Large diffs are not rendered by default.

950 changes: 950 additions & 0 deletions hs_err_pid19351.log

Large diffs are not rendered by default.

950 changes: 950 additions & 0 deletions hs_err_pid19500.log

Large diffs are not rendered by default.

952 changes: 952 additions & 0 deletions hs_err_pid19550.log

Large diffs are not rendered by default.

953 changes: 953 additions & 0 deletions hs_err_pid19630.log

Large diffs are not rendered by default.

950 changes: 950 additions & 0 deletions hs_err_pid19684.log

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.2.0'
implementation("com.squareup.okhttp3:okhttp:4.4.0")
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.core:core-ktx:1.3.1'
implementation("com.squareup.okhttp3:okhttp:4.7.2")
implementation 'com.google.firebase:firebase-messaging:20.2.4'
def coroutines_version = "1.2.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.gowtham.library" >
package="com.fcmsender" >

<uses-permission android:name="android.permission.INTERNET"/>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gowtham.library
package com.fcmsender

import android.content.Context
import kotlinx.coroutines.CoroutineScope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gowtham.library
package com.fcmsender

import android.content.Context
import org.json.JSONObject
Expand Down

0 comments on commit ae9ced7

Please sign in to comment.