Skip to content

Commit 0a32e28

Browse files
authored
Feat/cupertino pane (#49)
* feat: Drawer * feat: Drawer and added a function for clickoutside in utils * fix: classes * fix: drawer button position * fix: style and clickoutside * fix: pane height * fix: border-radius * fix: drawer as bulletin * fix: styling * fix: component with inbuilt features * fix: remove redundant code * fix: remove redundant code * fix: cancel button * fix: css in storybook * fix: position * fix: height of pane * fix: remove redundant code
1 parent 522a01b commit 0a32e28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1076
-14
lines changed

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.13.1

infrastructure/eid-wallet/.storybook/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const config: StorybookConfig = {
1414
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|ts)"],
1515
addons: [
1616
getAbsolutePath("@storybook/addon-essentials"),
17-
getAbsolutePath("@storybook/addon-svelte-csf"),
1817
getAbsolutePath("@chromatic-com/storybook"),
1918
getAbsolutePath("@storybook/experimental-addon-test"),
2019
],

infrastructure/eid-wallet/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@
4343
"@vitest/browser": "^3.0.9",
4444
"@vitest/coverage-v8": "^3.0.9",
4545
"autoprefixer": "^10.4.21",
46+
"cupertino-pane": "^1.4.22",
4647
"daisyui": "^5.0.6",
4748
"playwright": "^1.51.1",
4849
"postcss": "^8.5.3",
4950
"storybook": "^8.6.7",
5051
"svelte": "^5.0.0",
5152
"svelte-check": "^4.0.0",
53+
"svelte-gestures": "^5.1.3",
5254
"tailwindcss": "^4.0.14",
5355
"typescript": "~5.6.2",
5456
"vite": "^6.0.3",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties
16+
key.properties
17+
18+
/.tauri
19+
/tauri.settings.gradle
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/src/main/java/com/eid_wallet/app/generated
2+
/src/main/jniLibs/**/*.so
3+
/src/main/assets/tauri.conf.json
4+
/tauri.build.gradle.kts
5+
/proguard-tauri.pro
6+
/tauri.properties
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
import java.util.Properties
2+
3+
plugins {
4+
id("com.android.application")
5+
id("org.jetbrains.kotlin.android")
6+
id("rust")
7+
}
8+
9+
val tauriProperties = Properties().apply {
10+
val propFile = file("tauri.properties")
11+
if (propFile.exists()) {
12+
propFile.inputStream().use { load(it) }
13+
}
14+
}
15+
16+
android {
17+
compileSdk = 34
18+
namespace = "com.eid_wallet.app"
19+
defaultConfig {
20+
manifestPlaceholders["usesCleartextTraffic"] = "false"
21+
applicationId = "com.eid_wallet.app"
22+
minSdk = 24
23+
targetSdk = 34
24+
versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt()
25+
versionName = tauriProperties.getProperty("tauri.android.versionName", "1.0")
26+
}
27+
buildTypes {
28+
getByName("debug") {
29+
manifestPlaceholders["usesCleartextTraffic"] = "true"
30+
isDebuggable = true
31+
isJniDebuggable = true
32+
isMinifyEnabled = false
33+
packaging { jniLibs.keepDebugSymbols.add("*/arm64-v8a/*.so")
34+
jniLibs.keepDebugSymbols.add("*/armeabi-v7a/*.so")
35+
jniLibs.keepDebugSymbols.add("*/x86/*.so")
36+
jniLibs.keepDebugSymbols.add("*/x86_64/*.so")
37+
}
38+
}
39+
getByName("release") {
40+
isMinifyEnabled = true
41+
proguardFiles(
42+
*fileTree(".") { include("**/*.pro") }
43+
.plus(getDefaultProguardFile("proguard-android-optimize.txt"))
44+
.toList().toTypedArray()
45+
)
46+
}
47+
}
48+
kotlinOptions {
49+
jvmTarget = "1.8"
50+
}
51+
buildFeatures {
52+
buildConfig = true
53+
}
54+
}
55+
56+
rust {
57+
rootDirRel = "../../../"
58+
}
59+
60+
dependencies {
61+
implementation("androidx.webkit:webkit:1.6.1")
62+
implementation("androidx.appcompat:appcompat:1.6.1")
63+
implementation("com.google.android.material:material:1.8.0")
64+
testImplementation("junit:junit:4.13.2")
65+
androidTestImplementation("androidx.test.ext:junit:1.1.4")
66+
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0")
67+
}
68+
69+
apply(from = "tauri.build.gradle.kts")
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
<uses-permission android:name="android.permission.INTERNET" />
4+
5+
<!-- AndroidTV support -->
6+
<uses-feature android:name="android.software.leanback" android:required="false" />
7+
8+
<application
9+
android:icon="@mipmap/ic_launcher"
10+
android:label="@string/app_name"
11+
android:theme="@style/Theme.eid_wallet"
12+
android:usesCleartextTraffic="${usesCleartextTraffic}">
13+
<activity
14+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
15+
android:launchMode="singleTask"
16+
android:label="@string/main_activity_title"
17+
android:name=".MainActivity"
18+
android:exported="true">
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN" />
21+
<category android:name="android.intent.category.LAUNCHER" />
22+
<!-- AndroidTV support -->
23+
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
24+
</intent-filter>
25+
</activity>
26+
27+
<provider
28+
android:name="androidx.core.content.FileProvider"
29+
android:authorities="${applicationId}.fileprovider"
30+
android:exported="false"
31+
android:grantUriPermissions="true">
32+
<meta-data
33+
android:name="android.support.FILE_PROVIDER_PATHS"
34+
android:resource="@xml/file_paths" />
35+
</provider>
36+
</application>
37+
</manifest>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.eid_wallet.app
2+
3+
class MainActivity : TauriActivity()

0 commit comments

Comments
 (0)