Loading app/build.gradle +6 −4 Original line number Diff line number Diff line Loading @@ -27,9 +27,6 @@ android { versionCode versionMajor * 1000000 + versionMinor * 1000 + versionPatch versionName "${versionMajor}.${versionMinor}.${versionPatch}" setProperty("archivesBaseName", "eDrive-$versionName") buildConfigField "String", "testAccountName", "\""+getTestProp("testAccountName")+"\"" buildConfigField "String", "testAccountPWd", "\""+getTestProp("testAccountPwd")+"\"" buildConfigField "String", "testServerUrl", "\""+getTestProp("testServerUrl")+"\"" } buildTypes { release { Loading @@ -47,6 +44,11 @@ android { unitTests { returnDefaultValues = true //includeAndroidResources = true unitTests.all { systemProperty 'robolectric.dependency.repo.url', "\""+getTestProp("testServerUrl")+"\"" systemProperty 'robolectric.dependency.repo.username', "\""+getTestProp("testAccountName")+"\"" systemProperty 'robolectric.dependency.repo.password', "\""+getTestProp("testAccountPwd")+"\"" } } } buildFeatures { Loading Loading @@ -83,6 +85,6 @@ dependencies { testImplementation 'androidx.test:runner:1.4.0' testImplementation 'androidx.test:rules:1.4.0' testImplementation 'junit:junit:4.12' testImplementation 'org.robolectric:robolectric:4.4' testImplementation 'org.robolectric:robolectric:4.8.1' testImplementation('org.mockito:mockito-inline:3.4.0') } Loading
app/build.gradle +6 −4 Original line number Diff line number Diff line Loading @@ -27,9 +27,6 @@ android { versionCode versionMajor * 1000000 + versionMinor * 1000 + versionPatch versionName "${versionMajor}.${versionMinor}.${versionPatch}" setProperty("archivesBaseName", "eDrive-$versionName") buildConfigField "String", "testAccountName", "\""+getTestProp("testAccountName")+"\"" buildConfigField "String", "testAccountPWd", "\""+getTestProp("testAccountPwd")+"\"" buildConfigField "String", "testServerUrl", "\""+getTestProp("testServerUrl")+"\"" } buildTypes { release { Loading @@ -47,6 +44,11 @@ android { unitTests { returnDefaultValues = true //includeAndroidResources = true unitTests.all { systemProperty 'robolectric.dependency.repo.url', "\""+getTestProp("testServerUrl")+"\"" systemProperty 'robolectric.dependency.repo.username', "\""+getTestProp("testAccountName")+"\"" systemProperty 'robolectric.dependency.repo.password', "\""+getTestProp("testAccountPwd")+"\"" } } } buildFeatures { Loading Loading @@ -83,6 +85,6 @@ dependencies { testImplementation 'androidx.test:runner:1.4.0' testImplementation 'androidx.test:rules:1.4.0' testImplementation 'junit:junit:4.12' testImplementation 'org.robolectric:robolectric:4.4' testImplementation 'org.robolectric:robolectric:4.8.1' testImplementation('org.mockito:mockito-inline:3.4.0') }