{"id":19903445,"url":"https://github.com/zdavatz/generika_android","last_synced_at":"2025-05-03T00:31:06.863Z","repository":{"id":66323555,"uuid":"119062517","full_name":"zdavatz/generika_android","owner":"zdavatz","description":"Generika App for Android, based on the Generikacc App for iOS.","archived":false,"fork":false,"pushed_at":"2025-01-16T14:23:20.000Z","size":1846,"stargazers_count":3,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T08:51:26.630Z","etag":null,"topics":["android","app","barcode-scanner","generika","generika-cc","java","oddb","ywesee"],"latest_commit_sha":null,"homepage":"https://play.google.com/store/apps/details?id=org.oddb.generika","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zdavatz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-26T14:42:11.000Z","updated_at":"2025-01-16T14:22:57.000Z","dependencies_parsed_at":"2025-01-17T01:30:23.291Z","dependency_job_id":null,"html_url":"https://github.com/zdavatz/generika_android","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fgenerika_android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fgenerika_android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fgenerika_android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fgenerika_android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdavatz","download_url":"https://codeload.github.com/zdavatz/generika_android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252126442,"owners_count":21698963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","app","barcode-scanner","generika","generika-cc","java","oddb","ywesee"],"created_at":"2024-11-12T20:23:47.341Z","updated_at":"2025-05-03T00:31:06.856Z","avatar_url":"https://github.com/zdavatz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generika Android\n\nGenerika App for Android, based on the [Generikacc App for iOS](https://github.com/zdavatz/generikacc).\n\n\n## Screenshots\n\n\u003cimg src=\"/img/medikamente-20180419.jpg?raw=true\" alt=\"Medikamente\" width=\"174px\"\u003e \u003cimg src=\"/img/drawer-menu-20180419.jpg?raw=true\" alt=\"Drawer\" width=\"174px\"\u003e \u003cimg src=\"/img/rezept-20180419.jpg?raw=true\" alt=\"Rezept\" width=\"174px\"\u003e \u003cimg src=\"/img/settings-20180419.jpg?raw=true\" alt=\"Einstellungen\" width=\"174px\"\u003e \u003cimg src=\"/img/about-20180419.jpg?raw=true\" alt=\"About\" width=\"174px\"\u003e\n\n\n## Repository\n\nhttps://github.com/zdavatz/generika_android\n\nIt's available on [Google Play](https://play.google.com/store/apps/details?id=org.oddb.generika).\n\n\n## Platform\n\n* `\u003e= Android 12.0` (API Level 31)\n* `minSdkVersion 23`\n* `targetSdkVersion 31`\n\n## Setup\n\n### Requirements\n\n* [IcedTea](https://icedtea.classpath.org/wiki/Main_Page) 3.6 (OpenJDK 8)\n* Play Service Vision API (For Barcode Detection)\n\n#### IcedTea\n\nE.g. on Gentoo Linux\n\n```zsh\n# use icedtea or icedtea-bin with `gtk` USE flag for X11\n❯❯❯ equery l -po icedtea\n * Searching for icedtea ...\n[IP-] [  ] dev-java/icedtea-3.6.0:8\n```\n\nYou may want also following packages:\n\n* [dev-util/android-sdk-update-manager](\n  https://packages.gentoo.org/packages/dev-util/android-sdk-update-manager)\n* [dev-util/android-tools](\n  https://packages.gentoo.org/packages/dev-util/android-tools) (\n  for adb or fastboot etc.)\n\nSee a link below about Android specific packages.\n\nhttps://wiki.gentoo.org/wiki/Android\n\n#### Play Service (Vision API)\n\nIt's automatically prepared before initial boot on device.\nThis application is needed.\n\nhttps://play.google.com/store/apps/details?id=com.google.android.gms\u0026hl=en\n\n### ZurRose Credentials\n\n- Copy the client cert to `/app/src/main/assets/client.p12`.\n- Copy `/app/src/main/java/org/oddb/generika/util/Secrets.java.sample` to `Secrets.java` and fill in the password for the p12 file.\n\n### Build\n\n```zsh\n# via gradlew\n% make build\n\n# create apk (debug)\n% make archive\n# or\n% gradle assembleDebug\n\n# create apk (release)\n% make release\n# or\n% gradle assembleRelease\n```\n\n### Run\n\nSee targets `run` (connected emulator device).\n\n```zsh\n# list your virtual devices\n% make run ARGS=\"-list-avds\"\n./bin/emulator -list-avds\nNexus_5X_API_25\nNexus_5X_API_26\nNexus_5_API_27\nPixel_2_API_26\nPixel_2_API_27\nPixel_2_XL_API_26\n...\n\n# run\n% make run ARGS=\"-avd Nexus_5_API_27\"\n```\n\nFor example, build-run-stop (cycle) will be like this:\n(at console, run an emulator on X11 DISPLAY)\n\n```zsh\n# pass $ARGS to gradlew\n% make build ARGS=\"-x lint\"\n\n# run on your X11 DISPLAY ;)\n% DISPLAY=\":0\" make run ARGS=\"-avd Nexus_5_API_27\"\n\n% make stop\n```\n\n#### Debugging Steps\n\nRun the app on your device (connected via usb/wifi)\n\n```zsh\n# kill/start server\n% make serve\n...\n* daemon not runnig; starting now at tcp:5037\n* daemon started successfully\n\n% make start ARGS=\"5555\"\n% make attach ARGS=\"\u003cDEVICE_IP_ADDRESS\u003e:5555\"\n% make list\n\n% make archive\n% make install ARGS=\"...\"\n\n# start application\n\n# tail only application logs from attached process\n% make log\n\n% make detach\n```\n\n### Test\n\nRun JUnit Tests.\n\n```zsh\n# via gradlew\n% make test\n% make test ARGS=\"--debug\"\n% make test ARGS=\"--stacktrace\"\n\n% make test ARGS=\"--tests \\\"*Barcode*\\\"\"\n```\n\n## Upload APK from commandline\n\n* Install Playup from https://github.com/jeduan/playup\n* Setup your json File with the security credentials\n* In the Console type: `playup -a generika.json /path/to/app-release.apk`\n\n\n## License\n\n`GPL-3.0`\n\n```txt\nGenerika Android\nCopyright (c) 2018 ywesee GmbH\n```\n\nSee [LICENSE.txt](LICENCE).\n\n\nSome parts of barcode detection work with Android Mobile Vision API using\nextended codes based on codes which are included in samples project provided\nby The Android Open Source Project as `APACHE-2.0`.\n\nhttps://apache.org/licenses/GPL-compatibility.html\n\n```txt\nApache 2 software can therefore be included in GPLv3 projects, because\nthe GPLv3 license accepts our software into GPLv3 works. However, GPLv3\nsoftware cannot be included in Apache projects. The licenses are incompatible\nin one direction only, and it is a result of ASF's licensing philosophy and\nthe GPLv3 authors' interpretation of copyright law.\n```\n\n```txt\n/*\n * Copyright (C) The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n```\n\nSee [googlesamples/android-vision](\nhttps://github.com/googlesamples/android-vision).\n\n## French Translations\nDr. André Dubied\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdavatz%2Fgenerika_android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdavatz%2Fgenerika_android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdavatz%2Fgenerika_android/lists"}