forked from Akylas/OSS-DocumentScanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b3f4b8
commit 681b14b
Showing
43 changed files
with
829 additions
and
403 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -42,6 +42,7 @@ yarn-error.log* | |
.idea | ||
.cloud | ||
.project | ||
.yarn | ||
tmp/ | ||
typings/ | ||
|
||
|
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 @@ | ||
-dontobfuscate |
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,101 @@ | ||
import com.android.build.api.dsl.ManagedVirtualDevice | ||
|
||
|
||
plugins { | ||
id 'com.android.test' | ||
id 'org.jetbrains.kotlin.android' | ||
} | ||
|
||
android { | ||
namespace 'com.akylas.weather.benchmark' | ||
compileSdk 34 | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
defaultConfig { | ||
minSdk 24 | ||
targetSdk 34 | ||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(17) | ||
} | ||
|
||
buildTypes { | ||
// This benchmark buildType is used for benchmarking, and should function like your | ||
// release build (for example, with minification on). It's signed with a debug key | ||
// for easy local/CI testing. | ||
benchmark { | ||
debuggable = true | ||
signingConfig = debug.signingConfig | ||
matchingFallbacks = ["debug"] | ||
} | ||
} | ||
|
||
testOptions { | ||
managedDevices { | ||
devices { | ||
pixel2Api31(ManagedVirtualDevice) { | ||
device = "Pixel 2" | ||
apiLevel = 31 | ||
systemImageSource = "aosp" | ||
} | ||
} | ||
} | ||
} | ||
|
||
targetProjectPath = ":app" | ||
experimentalProperties["android.experimental.self-instrumenting"] = true | ||
} | ||
|
||
dependencies { | ||
implementation 'androidx.test.ext:junit:1.1.5' | ||
implementation 'androidx.test.espresso:espresso-core:3.5.1' | ||
implementation 'androidx.test.uiautomator:uiautomator:2.2.0' | ||
implementation 'androidx.benchmark:benchmark-macro-junit4:1.2.0-rc02' | ||
} | ||
|
||
androidComponents { | ||
beforeVariants(selector().all()) { | ||
enable = buildType == "benchmark" | ||
} | ||
} | ||
|
||
|
||
// duplicated from app. should be refactored | ||
def externalRuntimeExists = !findProject(':runtime').is(null) | ||
def pluginDependencies | ||
|
||
repositories { | ||
// used for local *.AAR files | ||
pluginDependencies = nativescriptDependencies.collect { | ||
"$rootDir/${it.directory}/$PLATFORMS_ANDROID" | ||
} | ||
|
||
// some plugins may have their android dependencies in a /libs subdirectory | ||
pluginDependencies.addAll(nativescriptDependencies.collect { | ||
"$rootDir/${it.directory}/$PLATFORMS_ANDROID/libs" | ||
}) | ||
|
||
if (!externalRuntimeExists) { | ||
pluginDependencies.add("$rootDir/app/libs/runtime-libs") | ||
} | ||
|
||
def appResourcesPath = getAppResourcesPath() | ||
def localAppResourcesLibraries = "$appResourcesPath/Android/libs" | ||
|
||
pluginDependencies.add(localAppResourcesLibraries) | ||
|
||
if (pluginDependencies.size() > 0) { | ||
|
||
flatDir { | ||
dirs pluginDependencies | ||
} | ||
} | ||
|
||
mavenCentral() | ||
} |
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 @@ | ||
<manifest /> |
Oops, something went wrong.