Skip to content

Commit

Permalink
ci: Test18
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkray committed Oct 16, 2024
1 parent 8676b38 commit c24e902
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 113 deletions.
106 changes: 0 additions & 106 deletions .github/workflows/bank-sdk.check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,109 +137,3 @@ jobs:
name: bank-sdk-example-app-instrumented-test-results
path: bank-sdk/example-app/build/outputs/androidTest-results/connected

build-example-apps:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: build release example app for QA
run: >
./gradlew bank-sdk:example-app:assembleQaExampleAppRelease
-PclientId="gini-mobile-test"
-PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}"
-PreleaseKeystoreFile="screen_api_example.jks"
-PreleaseKeystorePassword='${{ secrets.BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}'
-PreleaseKeyAlias="screen_api_example"
-PreleaseKeyPassword='${{ secrets.BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}'
- name: archive release example app for QA
uses: actions/upload-artifact@v4
with:
name: bank-sdk-example-app-qa-release
path: bank-sdk/example-app/build/outputs/apk/qaExampleApp/release

- name: build release example app for production
run: >
./gradlew bank-sdk:example-app:assembleProdExampleAppRelease
-PclientId="gini-mobile-test"
-PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}"
-PreleaseKeystoreFile="screen_api_example.jks"
-PreleaseKeystorePassword='${{ secrets.BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}'
-PreleaseKeyAlias="screen_api_example"
-PreleaseKeyPassword='${{ secrets.BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}'
- name: archive release example app for production
uses: actions/upload-artifact@v4
with:
name: bank-sdk-example-app-prod-release
path: bank-sdk/example-app/build/outputs/apk/prodExampleApp/release

android-lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: run android lint
run: ./gradlew bank-sdk:sdk:lint

- name: archive android lint report
uses: actions/upload-artifact@v4
with:
name: bank-sdk-android-lint-report
path: bank-sdk/sdk/build/reports/lint-results*.html

detekt:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: run detekt
run: ./gradlew bank-sdk:sdk:detekt

- name: archive detekt report
uses: actions/upload-artifact@v4
with:
name: bank-sdk-detekt-report
path: bank-sdk/sdk/build/reports/detekt/*.html

ktlint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: run ktlint
run: ./gradlew bank-sdk:sdk:ktlintCheck

- name: archive ktlint report
uses: actions/upload-artifact@v4
with:
name: bank-sdk-ktlint-report
path: bank-sdk/sdk/build/reports/ktlint/**/*.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ class CaptureScreen {
}

fun clickFilesButton(rootView: View): CaptureScreen {
onView(withText("Files")).perform(click())
// onView(withId(net.gini.android.capture.R.id.gc_button_import_document)).perform(click())
val uiCollection =
UiCollection(UiSelector().className("android.view.ViewGroup"))
val editButton = uiCollection.getChildByInstance(
UiSelector().className("android.widget.ImageButton")
// .text("Edit")
.resourceId("net.gini.android.capture.R.id.gc_button_import_document"), 0)
// val uiCollection =
// UiCollection(UiSelector().className("android.view.ViewGroup"))
// val editButton = uiCollection.getChildByInstance(
// UiSelector().className("android.widget.ImageButton")
// .resourceId("net.gini.android.capture.R.id.gc_button_import_document"), 0)
// if(editButton.exists() && editButton.isEnabled) {
editButton.click()
// editButton.click()
// }
// onView(withContentDescription("Files")).perform(click())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ private void bindViews(final View view) {
mViewStubInflater = new ViewStubSafeInflater(stubNoPermission);
mButtonImportDocumentWrapper = view.findViewById(R.id.gc_button_import_wrapper);
mButtonImportDocument = view.findViewById(R.id.gc_button_import);
view.findViewById(R.id.gc_document_import_button_subtitle).setOnClickListener(v -> showFileChooser());
mImportButtonGroup = view.findViewById(R.id.gc_document_import_button_group);
mActivityIndicatorBackground =
view.findViewById(R.id.gc_activity_indicator_background);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
android:src="@drawable/gc_document_import_icon" />

<TextView
android:id="@+id/gc_ff"
style="@style/GiniCaptureTheme.Typography.Subtitle2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down

0 comments on commit c24e902

Please sign in to comment.