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
public class JsBridge { | |
private Context context; | |
public static android.webkit.CookieManager cookieManager = CookieManager.getInstance(); | |
public JsBridge(Context context){ | |
this.context = context; | |
} | |
@JavascriptInterface |
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 androidx.appcompat.app.AppCompatActivity; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.view.WindowManager; | |
public class MainActivity extends AppCompatActivity { | |
// ----------------------------------------------------------------------- | |
// Activity overrides | |
// ----------------------------------------------------------------------- |
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
<%= form_with(model: content, id: 'content_form', | |
data: {controller: 'image-upload', | |
target: 'image-upload.form', | |
action: 'ajax:beforeSend->image-upload#submit'}) do |form| %> | |
<div data-target="image-upload.imagePreviews"></div> | |
<%= form.file_field :photos, multiple: true, | |
accept: "image/*;capture=camera|library", | |
data: { action: "image-upload#multiImageDisplay" } %> |
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
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
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
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 29 | |
buildToolsVersion "29.0.1" | |
defaultConfig { | |
applicationId "com.example.groupath" | |
minSdkVersion 19 | |
targetSdkVersion 29 | |
versionCode 1 |
NewerOlder