@@ -69,53 +69,61 @@ def enableProguardInReleaseBuilds = false
6969def jscFlavor = ' org.webkit:android-jsc:+'
7070
7171android {
72- ndkVersion rootProject. ext. ndkVersion
72+ ndkVersion rootProject. ext. ndkVersion
7373
74- compileSdkVersion rootProject. ext. compileSdkVersion
74+ compileSdkVersion rootProject. ext. compileSdkVersion
7575
76- lintOptions {
77- checkDependencies false
76+ lintOptions {
77+ checkDependencies false
78+ }
79+ tasks. whenTaskAdded { task ->
80+ if (task. name == ' lintAnalyzeDebug' ) {
81+ task. dependsOn ' copyReactNativeVectorIconFonts'
7882 }
79- tasks. whenTaskAdded { task ->
80- if (task. name == ' lintAnalyzeDebug' ) {
81- task. dependsOn ' copyReactNativeVectorIconFonts'
82- }
83+ }
84+
85+ namespace " com.reactnative"
86+ defaultConfig {
87+ applicationId " com.reactnative"
88+ minSdkVersion rootProject. ext. minSdkVersion
89+ targetSdkVersion rootProject. ext. targetSdkVersion
90+ versionCode 1
91+ versionName " 1.0"
92+ }
93+ signingConfigs {
94+ debug {
95+ storeFile file(' debug.keystore' )
96+ storePassword ' android'
97+ keyAlias ' androiddebugkey'
98+ keyPassword ' android'
8399 }
84-
85- namespace " com.reactnative"
86- defaultConfig {
87- applicationId " com.reactnative"
88- minSdkVersion rootProject. ext. minSdkVersion
89- targetSdkVersion rootProject. ext. targetSdkVersion
90- versionCode 1
91- versionName " 1.0"
92- }
93- signingConfigs {
94- debug {
95- storeFile file(' debug.keystore' )
96- storePassword ' android'
97- keyAlias ' androiddebugkey'
98- keyPassword ' android'
99- }
100+ }
101+ buildTypes {
102+ debug {
103+ signingConfig signingConfigs. debug
100104 }
101- buildTypes {
102- debug {
103- signingConfig signingConfigs. debug
104- }
105- release {
106- // Caution! In production, you need to generate your own keystore file.
107- // see https://reactnative.dev/docs/signed-apk-android.
108- signingConfig signingConfigs. debug
109- minifyEnabled enableProguardInReleaseBuilds
110- proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
111- }
105+ release {
106+ // Caution! In production, you need to generate your own keystore file.
107+ // see https://reactnative.dev/docs/signed-apk-android.
108+ signingConfig signingConfigs. debug
109+ minifyEnabled enableProguardInReleaseBuilds
110+ proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
112111 }
112+ }
113113}
114114
115115dependencies {
116116 // The version of react-native is set by the React Native Gradle Plugin
117117 implementation(" com.facebook.react:react-android" )
118118
119+ // Test dependencies
120+ testImplementation " junit:junit:4.13.2"
121+ testImplementation " org.mockito:mockito-core:4.11.0"
122+ androidTestImplementation " org.mockito:mockito-android:4.11.0"
123+ testImplementation " org.mockito:mockito-inline:4.6.1"
124+ testImplementation " org.assertj:assertj-core:3.24.2"
125+ testImplementation(" com.shopify:checkout-kit:${ SHOPIFY_CHECKOUT_SDK_VERSION} " )
126+
119127 debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " )
120128 debugImplementation(" com.facebook.flipper:flipper-network-plugin:${ FLIPPER_VERSION} " ) {
121129 exclude group :' com.squareup.okhttp3' , module :' okhttp'
0 commit comments