Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created new empty test file, added manifest and build.gradle for new …
Browse files Browse the repository at this point in the history
…module

Co-authored-by: Jax DesMarais-Leder <jdesmarais@paypal.com>
agedd and jaxdesmarais committed Dec 8, 2023
1 parent 23e4a60 commit 178c35b
Showing 6 changed files with 40 additions and 61 deletions.
50 changes: 33 additions & 17 deletions PayPalMessaging/build.gradle
Original file line number Diff line number Diff line change
@@ -4,14 +4,22 @@ plugins {
}

android {
namespace 'com.braintreepayments.api.paypalmessaging'
compileSdk 34
compileSdkVersion rootProject.compileSdkVersion

defaultConfig {
minSdk 24
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}

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

buildTypes {
@@ -21,21 +29,29 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
sourceCompatibility versions.javaSourceCompatibility
targetCompatibility versions.javaTargetCompatibility
}
}

dependencies {
api project(':BraintreeCore')

implementation deps.coreKtx
implementation deps.kotlinStdLib
implementation deps.appCompat

testImplementation deps.junitTest
}

// region signing and publishing

project.ext.name = "paypal-messaging"
project.ext.pom_name = "paypal-messaging"
project.ext.group_id = "com.braintreepayments.api"
project.ext.version = rootProject.version
project.ext.pom_desc = "PayPal Messaging dependencies for Braintree Android."

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

implementation 'androidx.core:core-ktx:1.9.0'
implementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.0')
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.10.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
// endregion

This file was deleted.

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

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.braintreepayments.api.paypalmessaging">
</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintreepayments.api.paypalmessaging

class PayPalMessagingView {
// TODO: Add functionality in a future PR
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.braintreepayments.api.paypalmessaging
class PayPalMessagingViewUnitTest {
// TODO: Add unit tests in a future PR
}

0 comments on commit 178c35b

Please sign in to comment.