This file contains hidden or 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
<resources> | |
<string name="app_name">Sitecore Quiz</string> | |
<string name="asset_statements"> | |
[{ | |
\"relation\": [\"delegate_permission/common.handle_all_urls\"], | |
\"target\": { | |
\"namespace\": \"web\", | |
\"site\": \"https://mydatahack.github.io\"} | |
}] | |
</string> |
This file contains hidden or 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
package="com.mdhsitecorequiz.twa.sitecorecertificationexamquiz"> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/sitecore_quiz_icon" | |
android:label="Sitecore Quiz" | |
android:roundIcon="@mipmap/sitecore_quiz_icon" | |
android:supportsRtl="true" |
This file contains hidden or 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' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-android-extensions' | |
android { | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 |
This file contains hidden or 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 { | |
ext.kotlin_version = '1.3.31' | |
repositories { | |
google() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.4.2' | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
// NOTE: Do not place your application dependencies here; they belong |
This file contains hidden or 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
<div id="sc-quiz-root"></div> | |
<style> | |
.sc-quiz-question { | |
color: #212529; | |
opacity: 1; | |
font-size: 16px; | |
} | |
.sc-quiz-choices-title{ | |
color: #212529; | |
opacity: 1; |
This file contains hidden or 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
'use strict'; | |
const AWS = require('aws-sdk'); | |
const { getParameter } = require('../play/get-parameter'); | |
let ssm; | |
const getParameters = (parameterNames, region, getParameterFunc=getParameter) => { | |
if (!ssm) { | |
ssm = new AWS.SSM({apiVersion: '2014-11-06', region: region}); | |
} |
This file contains hidden or 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
'use strict'; | |
const getParameter = (parameterName, ssm) => { | |
const value = ssm.getParameter({'Name': parameterName, WithDecryption: true}).promise(); | |
return value.then( (data) =>{ | |
return data.Parameter.Value; | |
}) | |
.catch((err) => { |
This file contains hidden or 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
'use strict'; | |
const { getParameters } = require('@mdhnpm/aws-ssm-parameters'); | |
// Input is an array of parameter names | |
const parameterNames = [ | |
'my.db.endpoint', | |
'my.db.name', | |
'my.db.password', | |
'my.db.username' |
This file contains hidden or 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
'use strict'; | |
const AWS = require('aws-sdk'); | |
let ssm; | |
const getParameters = async (parameterNames, region, apiVersion='2014-11-06') => { | |
if (!ssm) { | |
ssm = new AWS.SSM({apiVersion: apiVersion, region: region}); | |
} |