Skip to content

Commit

Permalink
Use sdk-webview 1.0.0 (#4)
Browse files Browse the repository at this point in the history
Remove Kotlin.
Add git hooks.
Update JS code.
  • Loading branch information
pavel-kuznetsov-hypertrack authored Oct 9, 2023
1 parent 38f707a commit 5755e14
Show file tree
Hide file tree
Showing 13 changed files with 172 additions and 604 deletions.
8 changes: 8 additions & 0 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

check_error="Git hook check error"

if ! grep -q "value=\"Paste_your_publishable_key_here" "android/app/src/main/AndroidManifest.xml"; then
echo "$check_error: PUBLISHABLE_KEY is probably set ('Paste_your_publishable_key_here' not found in AndroidManifest)"
exit 1
fi
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
/.idea/deploymentTargetDropDown.xml
/.idea/gradle.xml
/.idea/vcs.xml
.DS_Store
/build
/captures
Expand Down
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

253 changes: 0 additions & 253 deletions API_REFERENCE.md

This file was deleted.

14 changes: 2 additions & 12 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
Expand Down Expand Up @@ -30,15 +29,9 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
compose false
}
composeOptions {
kotlinCompilerExtensionVersion '1.3.2'
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
Expand All @@ -47,9 +40,6 @@ android {
}

dependencies {
implementation "com.hypertrack:hypertrack:6.4.2"

implementation 'androidx.core:core-ktx:1.10.1'
implementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.0')
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation "com.hypertrack:sdk-webview:1.0.0"
implementation "androidx.appcompat:appcompat:1.3.1"
}
4 changes: 4 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<meta-data
android:name="HyperTrackPublishableKey"
android:value="Paste_your_publishable_key_here"/>
</application>

</manifest>
Loading

0 comments on commit 5755e14

Please sign in to comment.