-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create skeleton of stripe-connect module * Add codeowners, add example, push * Update CODEOWNERS * Revert change to gradle properties (un-needed) * Remove last line * Add dependencies, fix lint * Fix lint, restrict to library, clarify comment * Generate new api file * Fix manifest
- Loading branch information
1 parent
2b7daa5
commit add5c86
Showing
20 changed files
with
1,659 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
apply from: configs.androidApplication | ||
|
||
apply plugin: 'com.google.devtools.ksp' | ||
apply plugin: "org.jetbrains.kotlin.plugin.parcelize" | ||
apply plugin: 'org.jetbrains.kotlin.plugin.serialization' | ||
|
||
dependencies { | ||
implementation project(":stripe-connect") | ||
|
||
// Kotlin | ||
implementation libs.kotlin.coroutines | ||
implementation libs.kotlin.coroutinesAndroid | ||
implementation libs.kotlin.serialization | ||
|
||
// AndroidX | ||
implementation libs.androidx.activity | ||
implementation libs.androidx.annotation | ||
implementation libs.androidx.appCompat | ||
implementation libs.androidx.browser | ||
implementation libs.androidx.fragment | ||
implementation libs.androidx.lifecycle | ||
implementation libs.androidx.savedState | ||
implementation libs.androidx.viewModel | ||
|
||
// Compose | ||
implementation libs.compose.ui | ||
implementation libs.compose.uiViewBinding | ||
implementation libs.compose.foundation | ||
implementation libs.compose.material | ||
implementation libs.compose.materialIcons | ||
implementation libs.compose.activity | ||
implementation libs.compose.navigation | ||
implementation libs.accompanist.systemUiController | ||
|
||
// Test | ||
testImplementation testLibs.androidx.archCore | ||
testImplementation testLibs.androidx.composeUi | ||
testImplementation testLibs.androidx.core | ||
testImplementation testLibs.androidx.fragment | ||
testImplementation testLibs.androidx.junit | ||
testImplementation testLibs.androidx.junitKtx | ||
testImplementation testLibs.androidx.lifecycle | ||
testImplementation testLibs.androidx.testRules | ||
testImplementation testLibs.hamcrest | ||
testImplementation testLibs.junit | ||
testImplementation testLibs.json | ||
testImplementation testLibs.kotlin.annotations | ||
testImplementation testLibs.kotlin.coroutines | ||
testImplementation testLibs.kotlin.junit | ||
testImplementation testLibs.mockito.core | ||
testImplementation testLibs.mockito.inline | ||
testImplementation testLibs.mockito.kotlin | ||
testImplementation testLibs.robolectric | ||
testImplementation testLibs.truth | ||
|
||
androidTestImplementation testLibs.androidx.composeUi | ||
androidTestImplementation testLibs.androidx.coreKtx | ||
androidTestImplementation testLibs.androidx.junit | ||
androidTestImplementation testLibs.androidx.junitKtx | ||
androidTestImplementation testLibs.androidx.testRules | ||
androidTestImplementation testLibs.androidx.testRunner | ||
androidTestImplementation testLibs.androidx.truth | ||
androidTestImplementation testLibs.androidx.uiAutomator | ||
androidTestImplementation testLibs.espresso.core | ||
androidTestImplementation (testLibs.espresso.contrib) { | ||
exclude group: 'org.checkerframework', module: 'checker' | ||
} | ||
androidTestImplementation testLibs.mockito.core | ||
androidTestImplementation testLibs.mockito.inline | ||
androidTestImplementation testLibs.mockito.kotlin | ||
androidTestImplementation libs.leakCanary | ||
androidTestImplementation testLibs.leakCanaryInstrumentation | ||
androidTestImplementation testLibs.testParameterInjector | ||
androidTestImplementation testLibs.truth | ||
|
||
androidTestUtil testLibs.testOrchestrator | ||
} | ||
|
||
android { | ||
defaultConfig { | ||
testApplicationId "com.stripe.android.connectsdk.example.test" | ||
} | ||
|
||
buildFeatures { | ||
compose = true | ||
viewBinding true | ||
} | ||
|
||
testOptions { | ||
unitTests { | ||
// Note: without this, all Robolectric tests using assets will fail. | ||
includeAndroidResources = true | ||
all { | ||
maxHeapSize = "1024m" | ||
} | ||
} | ||
|
||
kotlinOptions { | ||
freeCompilerArgs += ["-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"] | ||
} | ||
|
||
managedDevices { | ||
localDevices { | ||
register("pixel2api33") { | ||
device = "Pixel 2" | ||
apiLevel = 33 | ||
systemImageSource = "aosp" | ||
} | ||
} | ||
} | ||
} | ||
|
||
composeOptions { | ||
kotlinCompilerExtensionVersion "${versions.androidxComposeCompiler}" | ||
} | ||
|
||
kotlinOptions { | ||
freeCompilerArgs += [ | ||
"-opt-in=kotlinx.coroutines.FlowPreview", | ||
"-Xcontext-receivers", | ||
] | ||
if (gradle.ext.isCi) { | ||
kotlinOptions.allWarningsAsErrors = true | ||
} | ||
} | ||
} |
Oops, something went wrong.