From d3bf2d09f740221771806789b00bf915c9f5f2e3 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 26 Jan 2024 14:51:36 +0100 Subject: initial commit --- mobile-ns/.editorconfig | 23 + mobile-ns/.gitignore | 6 + mobile-ns/.vscode/extensions.json | 3 + mobile-ns/App_Resources/Android/app.gradle | 25 + .../App_Resources/Android/before-plugins.gradle | 15 + .../Android/src/main/AndroidManifest.xml | 47 + .../src/main/res/drawable-hdpi/background.png | Bin 0 -> 3661 bytes .../Android/src/main/res/drawable-hdpi/logo.png | Bin 0 -> 5165 bytes .../src/main/res/drawable-ldpi/background.png | Bin 0 -> 1609 bytes .../Android/src/main/res/drawable-ldpi/logo.png | Bin 0 -> 2511 bytes .../src/main/res/drawable-mdpi/background.png | Bin 0 -> 2218 bytes .../Android/src/main/res/drawable-mdpi/logo.png | Bin 0 -> 3432 bytes .../src/main/res/drawable-nodpi/splash_screen.xml | 8 + .../src/main/res/drawable-xhdpi/background.png | Bin 0 -> 5473 bytes .../Android/src/main/res/drawable-xhdpi/logo.png | Bin 0 -> 6904 bytes .../src/main/res/drawable-xxhdpi/background.png | Bin 0 -> 9949 bytes .../Android/src/main/res/drawable-xxhdpi/logo.png | Bin 0 -> 10319 bytes .../src/main/res/drawable-xxxhdpi/background.png | Bin 0 -> 15701 bytes .../Android/src/main/res/drawable-xxxhdpi/logo.png | Bin 0 -> 13941 bytes .../main/res/drawable/ic_launcher_foreground.xml | 15 + .../src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3092 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 1956 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4484 bytes .../src/main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7184 bytes .../src/main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10378 bytes .../Android/src/main/res/values-v21/colors.xml | 5 + .../Android/src/main/res/values-v21/styles.xml | 34 + .../Android/src/main/res/values-v29/styles.xml | 18 + .../Android/src/main/res/values/colors.xml | 14 + .../src/main/res/values/ic_launcher_background.xml | 4 + .../Android/src/main/res/values/styles.xml | 42 + .../AppIcon.appiconset/Contents.json | 122 + .../AppIcon.appiconset/icon-1024.png | Bin 0 -> 17868 bytes .../Assets.xcassets/AppIcon.appiconset/icon-20.png | Bin 0 -> 745 bytes .../AppIcon.appiconset/icon-20@2x.png | Bin 0 -> 995 bytes .../AppIcon.appiconset/icon-20@3x.png | Bin 0 -> 1258 bytes .../Assets.xcassets/AppIcon.appiconset/icon-29.png | Bin 0 -> 851 bytes .../AppIcon.appiconset/icon-29@2x.png | Bin 0 -> 1232 bytes .../AppIcon.appiconset/icon-29@3x.png | Bin 0 -> 1668 bytes .../Assets.xcassets/AppIcon.appiconset/icon-40.png | Bin 0 -> 995 bytes .../AppIcon.appiconset/icon-40@2x.png | Bin 0 -> 1504 bytes .../AppIcon.appiconset/icon-40@3x.png | Bin 0 -> 2121 bytes .../AppIcon.appiconset/icon-60@2x.png | Bin 0 -> 2121 bytes .../AppIcon.appiconset/icon-60@3x.png | Bin 0 -> 3018 bytes .../Assets.xcassets/AppIcon.appiconset/icon-76.png | Bin 0 -> 1482 bytes .../AppIcon.appiconset/icon-76@2x.png | Bin 0 -> 2633 bytes .../AppIcon.appiconset/icon-83.5@2x.png | Bin 0 -> 2831 bytes .../iOS/Assets.xcassets/Contents.json | 6 + .../LaunchScreen.AspectFill.imageset/Contents.json | 23 + .../LaunchScreen-AspectFill.png | Bin 0 -> 4920 bytes .../LaunchScreen-AspectFill@2x.png | Bin 0 -> 14165 bytes .../LaunchScreen-AspectFill@3x.png | Bin 0 -> 27892 bytes .../LaunchScreen.Center.imageset/Contents.json | 23 + .../LaunchScreen-Center.png | Bin 0 -> 6808 bytes .../LaunchScreen-Center@2x.png | Bin 0 -> 13502 bytes .../LaunchScreen-Center@3x.png | Bin 0 -> 20794 bytes mobile-ns/App_Resources/iOS/Info.plist | 47 + .../App_Resources/iOS/LaunchScreen.storyboard | 53 + mobile-ns/App_Resources/iOS/build.xcconfig | 6 + mobile-ns/Justfile | 5 + mobile-ns/app/app-root.xml | 2 + mobile-ns/app/app.css | 6 + mobile-ns/app/app.ts | 14 + mobile-ns/app/gallery-page.ts | 7 + mobile-ns/app/gallery-page.xml | 7 + mobile-ns/app/gallery-view-model.ts | 65 + mobile-ns/app/main-page.ts | 7 + mobile-ns/app/main-page.xml | 17 + mobile-ns/app/main-view-model.ts | 50 + mobile-ns/bin/ns | 3 + mobile-ns/nativescript.config.ts | 11 + mobile-ns/nix/android-composition.nix | 14 + mobile-ns/nix/androidsdk-fixup.py | 24 + mobile-ns/nix/androidsdk.nix | 29 + mobile-ns/package-lock.json | 4768 ++++++++++++++++++++ mobile-ns/package.json | 17 + mobile-ns/references.d.ts | 1 + mobile-ns/tsconfig.json | 21 + mobile-ns/webpack.config.js | 10 + 80 files changed, 5622 insertions(+) create mode 100644 mobile-ns/.editorconfig create mode 100644 mobile-ns/.gitignore create mode 100644 mobile-ns/.vscode/extensions.json create mode 100644 mobile-ns/App_Resources/Android/app.gradle create mode 100644 mobile-ns/App_Resources/Android/before-plugins.gradle create mode 100644 mobile-ns/App_Resources/Android/src/main/AndroidManifest.xml create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-hdpi/background.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-hdpi/logo.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-ldpi/background.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-ldpi/logo.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-mdpi/background.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-mdpi/logo.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-xhdpi/background.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml create mode 100644 mobile-ns/App_Resources/Android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 mobile-ns/App_Resources/Android/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 mobile-ns/App_Resources/Android/src/main/res/values-v21/colors.xml create mode 100644 mobile-ns/App_Resources/Android/src/main/res/values-v21/styles.xml create mode 100644 mobile-ns/App_Resources/Android/src/main/res/values-v29/styles.xml create mode 100644 mobile-ns/App_Resources/Android/src/main/res/values/colors.xml create mode 100644 mobile-ns/App_Resources/Android/src/main/res/values/ic_launcher_background.xml create mode 100644 mobile-ns/App_Resources/Android/src/main/res/values/styles.xml create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/Contents.json create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png create mode 100644 mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png create mode 100644 mobile-ns/App_Resources/iOS/Info.plist create mode 100644 mobile-ns/App_Resources/iOS/LaunchScreen.storyboard create mode 100644 mobile-ns/App_Resources/iOS/build.xcconfig create mode 100644 mobile-ns/Justfile create mode 100644 mobile-ns/app/app-root.xml create mode 100644 mobile-ns/app/app.css create mode 100644 mobile-ns/app/app.ts create mode 100644 mobile-ns/app/gallery-page.ts create mode 100644 mobile-ns/app/gallery-page.xml create mode 100644 mobile-ns/app/gallery-view-model.ts create mode 100644 mobile-ns/app/main-page.ts create mode 100644 mobile-ns/app/main-page.xml create mode 100644 mobile-ns/app/main-view-model.ts create mode 100755 mobile-ns/bin/ns create mode 100644 mobile-ns/nativescript.config.ts create mode 100644 mobile-ns/nix/android-composition.nix create mode 100755 mobile-ns/nix/androidsdk-fixup.py create mode 100644 mobile-ns/nix/androidsdk.nix create mode 100644 mobile-ns/package-lock.json create mode 100644 mobile-ns/package.json create mode 100644 mobile-ns/references.d.ts create mode 100644 mobile-ns/tsconfig.json create mode 100644 mobile-ns/webpack.config.js (limited to 'mobile-ns') diff --git a/mobile-ns/.editorconfig b/mobile-ns/.editorconfig new file mode 100644 index 0000000..2ad1eec --- /dev/null +++ b/mobile-ns/.editorconfig @@ -0,0 +1,23 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 + +[*.json] +indent_style = space +indent_size = 2 + +[*.js] +indent_style = space +indent_size = 2 + +[*.ts] +indent_style = space +indent_size = 2 + +[*.xml] +indent_style = space +indent_size = 2 diff --git a/mobile-ns/.gitignore b/mobile-ns/.gitignore new file mode 100644 index 0000000..eb2320a --- /dev/null +++ b/mobile-ns/.gitignore @@ -0,0 +1,6 @@ +/.nix/ +.npmrc + +/node_modules/ +/hooks/ +/platforms/ diff --git a/mobile-ns/.vscode/extensions.json b/mobile-ns/.vscode/extensions.json new file mode 100644 index 0000000..2a163b8 --- /dev/null +++ b/mobile-ns/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["nativescript.nativescript"] +} diff --git a/mobile-ns/App_Resources/Android/app.gradle b/mobile-ns/App_Resources/Android/app.gradle new file mode 100644 index 0000000..f837e17 --- /dev/null +++ b/mobile-ns/App_Resources/Android/app.gradle @@ -0,0 +1,25 @@ +// You can add your native dependencies here +dependencies { +// implementation 'androidx.multidex:multidex:2.0.1' +} + +android { + compileSdkVersion 33 + buildToolsVersion "33.0.2" + // ndkVersion "" + + defaultConfig { + minSdkVersion 23 + targetSdkVersion 33 + + // Version Information + versionCode 1 + versionName "1.0.0" + + generatedDensities = [] + } + + aaptOptions { + additionalParameters "--no-version-vectors" + } +} diff --git a/mobile-ns/App_Resources/Android/before-plugins.gradle b/mobile-ns/App_Resources/Android/before-plugins.gradle new file mode 100644 index 0000000..9faffb8 --- /dev/null +++ b/mobile-ns/App_Resources/Android/before-plugins.gradle @@ -0,0 +1,15 @@ +// this configurations is loaded before building plugins, as well as before building +// the app - this is where you can apply global settings and overrides + +project.ext { + // androidXAppCompat = "1.4.1" + // androidXExifInterface = "1.3.3" + // androidXFragment = "1.4.1" + // androidXMaterial = "1.5.0" + // androidXMultidex = "2.0.1" + // androidXTransition = "1.4.1" + // androidXViewPager = "1.0.0" + + // useKotlin = true + // kotlinVersion = "1.6.0" +} diff --git a/mobile-ns/App_Resources/Android/src/main/AndroidManifest.xml b/mobile-ns/App_Resources/Android/src/main/AndroidManifest.xml new file mode 100644 index 0000000..a20279d --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/AndroidManifest.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-hdpi/background.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-hdpi/background.png new file mode 100644 index 0000000..bbefbf4 Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-hdpi/background.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-hdpi/logo.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-hdpi/logo.png new file mode 100644 index 0000000..e788deb Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-hdpi/logo.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-ldpi/background.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-ldpi/background.png new file mode 100644 index 0000000..f6a08ee Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-ldpi/background.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-ldpi/logo.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-ldpi/logo.png new file mode 100644 index 0000000..e4cac1a Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-ldpi/logo.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-mdpi/background.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-mdpi/background.png new file mode 100644 index 0000000..0c90f0f Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-mdpi/background.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-mdpi/logo.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-mdpi/logo.png new file mode 100644 index 0000000..ce3c3a4 Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-mdpi/logo.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml b/mobile-ns/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml new file mode 100644 index 0000000..ada77f9 --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-xhdpi/background.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-xhdpi/background.png new file mode 100644 index 0000000..3541570 Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-xhdpi/background.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png new file mode 100644 index 0000000..88267df Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png new file mode 100644 index 0000000..abb0fc7 Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png new file mode 100644 index 0000000..55800c9 Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png new file mode 100644 index 0000000..1089775 Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png b/mobile-ns/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png new file mode 100644 index 0000000..0703f90 Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml b/mobile-ns/App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..fd826a3 --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/mobile-ns/App_Resources/Android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/mobile-ns/App_Resources/Android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..7353dbd --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/mobile-ns/App_Resources/Android/src/main/res/mipmap-hdpi/ic_launcher.png b/mobile-ns/App_Resources/Android/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..69948d2 Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/mipmap-mdpi/ic_launcher.png b/mobile-ns/App_Resources/Android/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..90a58cd Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/mipmap-xhdpi/ic_launcher.png b/mobile-ns/App_Resources/Android/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..70a2a0d Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/mipmap-xxhdpi/ic_launcher.png b/mobile-ns/App_Resources/Android/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..1ee5a94 Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/mobile-ns/App_Resources/Android/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..66e9d4b Binary files /dev/null and b/mobile-ns/App_Resources/Android/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/mobile-ns/App_Resources/Android/src/main/res/values-v21/colors.xml b/mobile-ns/App_Resources/Android/src/main/res/values-v21/colors.xml new file mode 100644 index 0000000..da5ca2f --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/res/values-v21/colors.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/mobile-ns/App_Resources/Android/src/main/res/values-v21/styles.xml b/mobile-ns/App_Resources/Android/src/main/res/values-v21/styles.xml new file mode 100644 index 0000000..04d8a06 --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/res/values-v21/styles.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + diff --git a/mobile-ns/App_Resources/Android/src/main/res/values-v29/styles.xml b/mobile-ns/App_Resources/Android/src/main/res/values-v29/styles.xml new file mode 100644 index 0000000..9a2a79d --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/res/values-v29/styles.xml @@ -0,0 +1,18 @@ + + + + + + + + + \ No newline at end of file diff --git a/mobile-ns/App_Resources/Android/src/main/res/values/colors.xml b/mobile-ns/App_Resources/Android/src/main/res/values/colors.xml new file mode 100644 index 0000000..78c4a51 --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/res/values/colors.xml @@ -0,0 +1,14 @@ + + + + #F5F5F5 + + + #757575 + + + #65ADF1 + + + + diff --git a/mobile-ns/App_Resources/Android/src/main/res/values/ic_launcher_background.xml b/mobile-ns/App_Resources/Android/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..c5d5899 --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file diff --git a/mobile-ns/App_Resources/Android/src/main/res/values/styles.xml b/mobile-ns/App_Resources/Android/src/main/res/values/styles.xml new file mode 100644 index 0000000..4f91b61 --- /dev/null +++ b/mobile-ns/App_Resources/Android/src/main/res/values/styles.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..1a8b0e6 --- /dev/null +++ b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "icon-20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "icon-20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "icon-29.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "icon-29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "icon-29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "icon-40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "icon-40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "icon-60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "icon-60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "icon-20.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "icon-20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "icon-29.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "icon-29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "icon-40.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "icon-40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "icon-76.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "icon-76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "icon-83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "icon-1024.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png new file mode 100644 index 0000000..b46c8bb Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png new file mode 100644 index 0000000..d73288a Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png new file mode 100644 index 0000000..c8d24cd Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png new file mode 100644 index 0000000..1b00c84 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png new file mode 100644 index 0000000..72a1641 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png new file mode 100644 index 0000000..05ab752 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png new file mode 100644 index 0000000..ee72082 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png new file mode 100644 index 0000000..2859288 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png new file mode 100644 index 0000000..88824fa Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png new file mode 100644 index 0000000..02a930c Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png new file mode 100644 index 0000000..d7b077f Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png new file mode 100644 index 0000000..2f872dd Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png new file mode 100644 index 0000000..7fb23a7 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png new file mode 100644 index 0000000..cb04c36 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png new file mode 100644 index 0000000..e882226 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/Contents.json b/mobile-ns/App_Resources/iOS/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/mobile-ns/App_Resources/iOS/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json new file mode 100644 index 0000000..ab5edd0 --- /dev/null +++ b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchScreen-AspectFill.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchScreen-AspectFill@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchScreen-AspectFill@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png new file mode 100644 index 0000000..cb35cfa Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png new file mode 100644 index 0000000..6eefb9a Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png new file mode 100644 index 0000000..0ef5102 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json new file mode 100644 index 0000000..444d715 --- /dev/null +++ b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchScreen-Center.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchScreen-Center@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchScreen-Center@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png new file mode 100644 index 0000000..280c30e Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png new file mode 100644 index 0000000..f984b9e Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png differ diff --git a/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png new file mode 100644 index 0000000..95d86f3 Binary files /dev/null and b/mobile-ns/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png differ diff --git a/mobile-ns/App_Resources/iOS/Info.plist b/mobile-ns/App_Resources/iOS/Info.plist new file mode 100644 index 0000000..ea3e3ea --- /dev/null +++ b/mobile-ns/App_Resources/iOS/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIRequiresFullScreen + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/mobile-ns/App_Resources/iOS/LaunchScreen.storyboard b/mobile-ns/App_Resources/iOS/LaunchScreen.storyboard new file mode 100644 index 0000000..c4e5a3f --- /dev/null +++ b/mobile-ns/App_Resources/iOS/LaunchScreen.storyboard @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile-ns/App_Resources/iOS/build.xcconfig b/mobile-ns/App_Resources/iOS/build.xcconfig new file mode 100644 index 0000000..0d38fe0 --- /dev/null +++ b/mobile-ns/App_Resources/iOS/build.xcconfig @@ -0,0 +1,6 @@ +// You can add custom settings here +// for example you can uncomment the following line to force distribution code signing +// CODE_SIGN_IDENTITY = iPhone Distribution +// To build for device with XCode you need to specify your development team. +// DEVELOPMENT_TEAM = YOUR_TEAM_ID; +ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; diff --git a/mobile-ns/Justfile b/mobile-ns/Justfile new file mode 100644 index 0000000..12e1e10 --- /dev/null +++ b/mobile-ns/Justfile @@ -0,0 +1,5 @@ +android_log: + adb logcat --pid=$(adb shell pidof -s org.nativescript.exampleapp) + +android_avd: + avdmanager create avd -n ImageSync -k "system-images;android-33;google_apis_playstore;x86_64" diff --git a/mobile-ns/app/app-root.xml b/mobile-ns/app/app-root.xml new file mode 100644 index 0000000..54e70d9 --- /dev/null +++ b/mobile-ns/app/app-root.xml @@ -0,0 +1,2 @@ + + diff --git a/mobile-ns/app/app.css b/mobile-ns/app/app.css new file mode 100644 index 0000000..14de482 --- /dev/null +++ b/mobile-ns/app/app.css @@ -0,0 +1,6 @@ +@import '@nativescript/theme/css/core.css'; +@import '@nativescript/theme/css/default.css'; + +Button.-primary { + font-size: 18; +} diff --git a/mobile-ns/app/app.ts b/mobile-ns/app/app.ts new file mode 100644 index 0000000..1947b6e --- /dev/null +++ b/mobile-ns/app/app.ts @@ -0,0 +1,14 @@ +/* +In NativeScript, the app.ts file is the entry point to your application. +You can use this file to perform app-level initialization, but the primary +purpose of the file is to pass control to the app’s first module. +*/ + +import { Application } from '@nativescript/core'; + +Application.run({ moduleName: 'app-root' }); + +/* +Do not place any code after the application has been started as it will not +be executed on iOS. +*/ diff --git a/mobile-ns/app/gallery-page.ts b/mobile-ns/app/gallery-page.ts new file mode 100644 index 0000000..517ac8a --- /dev/null +++ b/mobile-ns/app/gallery-page.ts @@ -0,0 +1,7 @@ +import { EventData, Page } from '@nativescript/core' +import { GalleryModel } from './gallery-view-model'; + +export function navigatingTo(args: EventData) { + const page = args.object; + page.bindingContext = new GalleryModel(); +} diff --git a/mobile-ns/app/gallery-page.xml b/mobile-ns/app/gallery-page.xml new file mode 100644 index 0000000..aa545e8 --- /dev/null +++ b/mobile-ns/app/gallery-page.xml @@ -0,0 +1,7 @@ + + + + +