This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val textView = overlay?.findViewById<TextView>(R.id.textView) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val textView = overlay?.findViewById(R.id.textView) as TextView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testing.jobdispatcher | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import com.firebase.jobdispatcher.FirebaseJobDispatcher | |
import com.firebase.jobdispatcher.GooglePlayDriver | |
import com.firebase.jobdispatcher.Lifetime | |
import com.firebase.jobdispatcher.Trigger | |
class MainActivity : AppCompatActivity() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="testing.jobdispatcher"> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:roundIcon="@mipmap/ic_launcher_round" | |
android:supportsRtl="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testing.jobdispatcher | |
import android.util.Log | |
import com.firebase.jobdispatcher.JobParameters | |
import com.firebase.jobdispatcher.JobService | |
class TaskService : JobService() { | |
override fun onStartJob(job: JobParameters?): Boolean { | |
Log.e(TaskService::class.java.name, "START JOB") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implementation 'com.firebase:firebase-jobdispatcher:0.8.5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subprojects { | |
afterEvaluate {project -> | |
if (project.hasProperty("android")) { | |
android { | |
compileSdkVersion 25 | |
buildToolsVersion '25.0.2' | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Helpers.openURL("mailto:feedback@test.com?subject=Feedback"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Helpers.openURL("mailto:feedback@test.com"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Opens a link | |
static async openURL(url: string): Promise<void> { | |
try { | |
await Linking.openURL(url); | |
} catch (error) { | |
console.log(error); | |
} | |
} |