Skip to content

Commit

Permalink
Create ShopperInsights module and move files there. (#853)
Browse files Browse the repository at this point in the history
* Create ShopperInsights module and move files there.

* Add EOF line

* Add README.md to the module

* clean up dependencies

* Refactor classes to standard package name

* remove unused files

* Modify release.yml to include newly created ShopperInsights module

* Modify release_snapshot.yml to include newly created ShopperInsights module

* remove example instrumented test

* update dependencies

* add dokka plugin to ShopperInsights module

* removing readme
  • Loading branch information
saperi22 authored Dec 14, 2023
1 parent 5cc27c1 commit ae80418
Show file tree
Hide file tree
Showing 15 changed files with 86 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,18 @@ jobs:
uses: ./.github/actions/unit_test_module
with:
module: SamsungPay
unit_test_shopper_insights:
name: Shopper Insights Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Java 8
uses: ./.github/actions/setup
- name: Run Unit Tests
uses: ./.github/actions/unit_test_module
with:
module: ShopperInsights
unit_test_three_d_secure:
name: ThreeDSecure Unit Tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -223,6 +235,7 @@ jobs:
unit_test_local_payment,
unit_test_paypal,
unit_test_samsung_pay,
unit_test_shopper_insights,
unit_test_three_d_secure,
unit_test_union_pay,
unit_test_venmo,
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/release_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,18 @@ jobs:
uses: ./.github/actions/unit_test_module
with:
module: SamsungPay
unit_test_shopper_insights:
name: Shopper Insights Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Java 8
uses: ./.github/actions/setup
- name: Run Unit Tests
uses: ./.github/actions/unit_test_module
with:
module: ShopperInsights
unit_test_three_d_secure:
name: ThreeDSecure Unit Tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -222,6 +234,7 @@ jobs:
unit_test_local_payment,
unit_test_paypal,
unit_test_samsung_pay,
unit_test_shopper_insights,
unit_test_three_d_secure,
unit_test_union_pay,
unit_test_venmo,
Expand Down
54 changes: 54 additions & 0 deletions ShopperInsights/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.dokka'
}

android {
namespace 'com.braintreepayments.api.shopperinsights'
compileSdk rootProject.compileSdkVersion

defaultConfig {
minSdk rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

testOptions {
unitTests {
includeAndroidResources = true
all {
jvmArgs '-noverify'
}
}
}

compileOptions {
sourceCompatibility versions.javaSourceCompatibility
targetCompatibility versions.javaTargetCompatibility
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {
implementation deps.coreKtx

testImplementation deps.jsonAssert
testImplementation deps.kotlinTest
testImplementation deps.mockk
}

// region signing and publishing

project.ext.name = "shopper-insights"
project.ext.pom_name = "shopper-insights"
project.ext.group_id = "com.braintreepayments.api"
project.ext.version = rootProject.version
project.ext.pom_desc = "Shopper Insights for Braintree Android."

apply from: rootProject.file("gradle/gradle-publish.gradle")

// endregion
4 changes: 4 additions & 0 deletions ShopperInsights/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ detekt {
"TestUtils/src",
"ThreeDSecure/src",
"Venmo/src",
"ShopperInsights/src"
)
autoCorrect = project.hasProperty('detektAutoCorrect')
reports {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ include ':TestUtils'
include ':Demo'
include ':SEPADirectDebit'
include ':PayPalDataCollector'
include ':ShopperInsights'

0 comments on commit ae80418

Please sign in to comment.