chore: Universal Linking for Android (#2324)
* android assetlinks.json config * try renaming html to json * update env example * chore: fix styling * chore: styling part 2 * test: add spec for android assetlinks * minor fixes * minor fixes * remove android sha256 value from env example * add default sh256 value Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
5
app/controllers/android_app_controller.rb
Normal file
5
app/controllers/android_app_controller.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AndroidAppController < ApplicationController
|
||||
def assetlinks
|
||||
render layout: false
|
||||
end
|
||||
end
|
||||
12
app/views/android_app/assetlinks.json.erb
Normal file
12
app/views/android_app/assetlinks.json.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"relation": ["delegate_permission/common.handle_all_urls"],
|
||||
"target": {
|
||||
"namespace": "android_app",
|
||||
"package_name": "<%= ENV['ANDROID_BUNDLE_ID'] %>",
|
||||
"sha256_cert_fingerprints": [
|
||||
"<%= ENV['ANDROID_SHA256_CERT_FINGERPRINT'] %>"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user