Skip to content

Commit 56414bd

Browse files
committed
xml save insuree
0 parents  commit 56414bd

358 files changed

Lines changed: 70886 additions & 0 deletions

File tree

Some content is hidden

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

.github/workflows/main.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
# tags:
8+
# - '!v*'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup JDK 17
18+
uses: actions/setup-java@v5
19+
with:
20+
distribution: 'temurin'
21+
java-version: '17'
22+
cache: 'gradle'
23+
24+
- name: Environment info
25+
run: |
26+
gradle --version
27+
28+
- name: show gradlew permission
29+
run: |
30+
chmod +x gradlew
31+
32+
- name: build
33+
run: |
34+
./gradlew assembleDemoProdDebug --stacktrace
35+
36+
- name: Run gradle tests
37+
run: ./gradlew testDemoProdDebugUnitTest
38+
39+
- name: Environment info
40+
run: |
41+
gradle --version
42+
43+
- uses: actions/upload-artifact@v4
44+
with:
45+
name: openimis-policies-apk-${{github.run_number}}-${{github.sha}}
46+
path: ./app/build/outputs/**/*.apk
47+
48+
- name: build
49+
run: |
50+
./gradlew bundleDemoProdDebug --stacktrace
51+
52+
- name: Environment info
53+
run: |
54+
gradle --version
55+
56+
- uses: actions/upload-artifact@v4
57+
with:
58+
name: openimis-policies-aab-${{github.run_number}}-${{github.sha}}
59+
path: ./app/build/outputs/**/*.aab

.github/workflows/manual.yml

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
name: manualbuild
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
api_base_url:
7+
description: URL of the REST API
8+
required: true
9+
default: https://release.openimis.org/rest/
10+
app_name:
11+
description: Display name of the application
12+
required: false
13+
default: Policies Manual
14+
app_version:
15+
description: Version of the application
16+
required: true
17+
default: v1.0.0
18+
app_dir:
19+
description: Name of the folder in Documents, default IMIS-CLI
20+
required: false
21+
application_id:
22+
description: Fully qualified name of the app
23+
required: true
24+
default: org.openimis.imispolicies.cli
25+
cli_java_dir:
26+
description: java source folder for custom functions. Only works with application_id_suffix .cli
27+
required: false
28+
cli_res_dir:
29+
description: Resources folder for icons. Only works with application_id_suffix .cli
30+
required: false
31+
cli_assets_dir:
32+
description: Asserts folder for images, json files.... Only works with .cli
33+
required: false
34+
# Branch is chosen by default in github manual actions
35+
36+
jobs:
37+
build:
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- name: Setup JDK 17
44+
uses: actions/setup-java@v5
45+
with:
46+
distribution: 'temurin'
47+
java-version: '17'
48+
cache: 'gradle'
49+
50+
- uses: actions/cache@v4
51+
with:
52+
path: |
53+
~/.gradle/caches
54+
~/.gradle/wrapper
55+
key: ${{ runner.os }}-${{ github.event.inputs.application_id }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
56+
57+
- uses: actions/cache@v4
58+
with:
59+
path: |
60+
~/.android
61+
key: ${{ runner.os }}-${{ github.event.inputs.application_id }}
62+
63+
- name: Environment info
64+
run: |
65+
gradle --version
66+
echo url ${{ github.event.inputs.api_base_url }}
67+
echo app name ${{ github.event.inputs.app_name }}
68+
69+
echo app dir ${{ github.event.inputs.app_dir }}
70+
echo CLI_JAVA_DIR "${{ github.event.inputs.cli_java_dir }}"
71+
echo CLI_RES_DIR "${{ github.event.inputs.cli_res_dir }}"
72+
echo CLI_ASSETS_DIR "${{ github.event.inputs.cli_assets_dir }}"
73+
echo APPLICATION_ID "${{ github.event.inputs.application_id }}"
74+
75+
- name: show gradlew permission
76+
run: |
77+
chmod +x gradlew
78+
79+
- name: build
80+
run: |
81+
./gradlew assembleCliDebug --stacktrace
82+
env:
83+
API_BASE_URL: "${{ github.event.inputs.api_base_url }}"
84+
CLI_APP_NAME: "${{ github.event.inputs.app_name }}"
85+
CLI_APP_DIR: "${{ github.event.inputs.app_dir }}"
86+
CLI_JAVA_DIR: "${{ github.event.inputs.cli_java_dir }}"
87+
CLI_RES_DIR: "${{ github.event.inputs.cli_res_dir }}"
88+
CLI_ASSETS_DIR: "${{ github.event.inputs.cli_assets_dir }}"
89+
APPLICATION_ID: "${{ github.event.inputs.application_id }}"
90+
91+
- name: Environment info
92+
run: |
93+
gradle --version
94+
95+
# Run Tests Build
96+
- name: Run gradle tests
97+
run: ./gradlew testCliDebugUnitTest
98+
99+
- uses: actions/upload-artifact@v4
100+
with:
101+
name: openimis-policies-apk-${{github.run_number}}-${{github.sha}}
102+
path: ./app/build/outputs/**/*.apk
103+
104+
#publish in release
105+
- name: Edit release ${{ github.event.inputs.app_version }}
106+
uses: softprops/action-gh-release@v1
107+
with:
108+
tag_name: ${{ github.event.inputs.app_version }} # Sets the release tag to the pushed tag name (e.g., v1.0.0)
109+
name: ${{ github.event.inputs.app_version }} # Sets the release name to the pushed tag name (e.g., Release v1.0.0)
110+
files: ./app/build/outputs/**/*.apk
111+
draft: false
112+
prerelease: false
113+
env:
114+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
116+
# - name: build
117+
# run: |
118+
# ./gradlew bundleDebug --stacktrace
119+
#
120+
# - uses: actions/upload-artifact@v2
121+
# with:
122+
# name: openimis-claims-aab-${{github.run_number}}-${{github.sha}}
123+
# path: ./claimManagement/build/outputs/**/*.aab

.gitignore

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Built application files
2+
*.apk
3+
*.ap_
4+
5+
# Files for the ART/Dalvik VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# Generated files
12+
bin/
13+
gen/
14+
out/
15+
16+
# Gradle files
17+
.gradle/
18+
build/
19+
20+
# Local configuration file (sdk path, etc)
21+
local.properties
22+
23+
# Proguard folder generated by Eclipse
24+
proguard/
25+
26+
# Log Files
27+
*.log
28+
29+
# Android Studio Navigation editor temp files
30+
.navigation/
31+
32+
# Android Studio captures folder
33+
captures/
34+
35+
# IntelliJ
36+
*.iml
37+
.idea/
38+
39+
# Keystore files
40+
# Uncomment the following line if you do not want to check your keystore files in.
41+
*.jks
42+
keystore.properties
43+
44+
# External native build folder generated in Android Studio 2.2 and later
45+
.externalNativeBuild
46+
47+
# Google Services (e.g. APIs or Firebase)
48+
google-services.json
49+
50+
# Freeline
51+
freeline.py
52+
freeline/
53+
freeline_project_description.json
54+
55+
# fastlane
56+
fastlane/report.xml
57+
fastlane/Preview.html
58+
fastlane/screenshots
59+
fastlane/test_output
60+
fastlane/readme.md
61+
62+
app/release/output.json
63+
.DS_Store
64+
65+
# Custom product flavours
66+
67+
*custom-flavours.gradle
68+
*.aab

0 commit comments

Comments
 (0)