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
{ | |
"name": "parse-server-example", | |
"version": "1.4.0", | |
"description": "An example Parse API server using the parse-server module", | |
"main": "index.js", | |
"repository": { | |
"type": "git", | |
"url": "https://github.com/ParsePlatform/parse-server-example" | |
}, | |
"license": "MIT", |
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
Parse.initialize( | |
Parse.Configuration.Builder(this) | |
.applicationId(Constant.APP_ID) | |
.clientKey(null) // no client key needed in Parse open source | |
.server(Constant.HOST) // http://talk.us-west-2.elasticbeanstalk.com/parse/ | |
.clientBuilder(builder) | |
.build() | |
) | |
FirebaseInstanceId.getInstance().instanceId.addOnSuccessListener { |
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
Parse.Cloud.define('pingReply', async (request) => { | |
/* | |
var customData = request.params; | |
console.log("the customData is " + customData); | |
var sender = JSON.parse(JSON.stringify(customData)); | |
const query = new Parse.Query(Parse.Installation); | |
console.log("the query is " + query); | |
query.equalTo("installationId", sender.user); | |
const results = await query.find(); | |
console.log("the results is " + results); |
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 com.example.mvvm.ui.base | |
import android.annotation.TargetApi | |
import android.content.Context | |
import android.graphics.Color | |
import android.os.Build | |
import android.os.Bundle | |
import android.view.View | |
import android.view.inputmethod.InputMethodManager | |
import android.widget.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 com.example.mvvm.ui | |
import androidx.fragment.app.FragmentManager | |
import androidx.fragment.app.FragmentTransaction | |
import com.example.mvvm.R | |
import com.example.mvvm.ui.base.BaseFragment | |
import com.example.mvvm.ui.base.BaseKey | |
import com.example.mvvm.ui.main.MainActivity | |
import com.zhuinden.simplestack.StateChange |
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
2019-11-25 11:40:48.694 10689-10689/com.example.mvvm E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: com.example.mvvm, PID: 10689 | |
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mvvm/com.example.mvvm.ui.main.MainActivity}: kotlin.TypeCastException: null cannot be cast to non-null type com.example.talk.ui.base.BaseFragment<*> | |
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913) | |
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048) | |
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) | |
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) | |
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) | |
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) | |
at android.os.Handler.dispatchMessage(Handler.java:106) |
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
2019-11-25 11:40:48.694 10689-10689/com.example.mvvm E/AndroidRuntime: FATAL EXCEPTION: main | |
Process: com.example.mvvm, PID: 10689 | |
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mvvm/com.example.mvvm.ui.main.MainActivity}: kotlin.TypeCastException: null cannot be cast to non-null type com.example.talk.ui.base.BaseFragment<*> | |
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913) | |
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048) | |
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) | |
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) | |
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) | |
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) | |
at android.os.Handler.dispatchMessage(Handler.java:106) |
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
private inner class CanvasPlayerComponent : DirectMediaPlayerComponent(CanvasBufferFormatCallback()) { | |
internal var pixelWriter: PixelWriter? = null | |
private val pw: PixelWriter? | |
get() { | |
if (pixelWriter == null) { | |
pixelWriter = writableImage?.getPixelWriter() | |
} | |
return pixelWriter | |
} |
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
import dagger.BindsInstance | |
import dagger.Subcomponent | |
import javafx.application.Application | |
import javafx.fxml.FXMLLoader | |
import javafx.stage.Stage | |
import java.net.URL | |
import java.util.* | |
import java.util.function.Function | |
@FxAppScoped |
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
buildscript { | |
repositories { | |
jcenter() | |
mavenLocal() | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.+' | |
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4' | |
} |
NewerOlder