Closed kittipongnvj closed 11 months ago
my build gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
def keystoreProdProperties = new Properties()
def keystoreProdPropertiesFile = rootProject.file('key-prod.properties')
if (keystoreProdPropertiesFile.exists()) {
keystoreProdProperties.load(new FileInputStream(keystoreProdPropertiesFile))
}
def keystoreDevProperties = new Properties()
def keystoreDevPropertiesFile = rootProject.file('key-dev.properties')
if (keystoreDevPropertiesFile.exists()) {
keystoreDevProperties.load(new FileInputStream(keystoreDevPropertiesFile))
}
android {
compileSdkVersion 33
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
defaultConfig {
minSdkVersion 21
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
ndk {
// abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64' // need this for release
abiFilters "armeabi", "x86", "armeabi-v7a", "arm64-v8a" ,"x86_64" // need this for dev
}
testInstrumentationRunner "pl.leancode.patrol.PatrolJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: "true"
}
signingConfigs {
prod {
storeFile file(keystoreProdProperties['storeFile'])
keyAlias keystoreProdProperties['keyAlias']
keyPassword keystoreProdProperties['keyPassword']
storePassword keystoreProdProperties['storePassword']
}
dev {
storeFile file(keystoreDevProperties['storeFile'])
keyAlias keystoreDevProperties['keyAlias']
keyPassword keystoreDevProperties['keyPassword']
storePassword keystoreDevProperties['storePassword']
}
}
buildTypes {
release {
applicationVariants.all { variant ->
variant.outputs.all { output ->
output.outputFileName = "app-release.apk"
}
}
minifyEnabled false
shrinkResources false
debuggable false
// proguardFiles(getDefaultProguardFile("proguard-android.txt"),"proguard-rules.pro")
}
debug {
applicationVariants.all { variant ->
variant.outputs.all { output ->
output.outputFileName = "app-dev-debug.apk"
}
}
minifyEnabled false
shrinkResources false
debuggable true
// proguardFiles(getDefaultProguardFile("proguard-android.txt"),"proguard-rules.pro")
}
}
flavorDimensions "app"
productFlavors {
emu {
dimension "app"
resValue "string", "app_name", "Wind training emu"
applicationId "com.navyjone.wind.emu"
signingConfig signingConfigs.dev
// versionNameSuffix "--emu"
}
dev {
dimension "app"
resValue "string", "app_name", "Wind training dev"
applicationId "com.navyjone.wind.dev"
signingConfig signingConfigs.dev
// versionNameSuffix "--dev"
}
prod {
dimension "app"
resValue "string", "app_name", "Wind training"
applicationId "com.calcal.wind"
signingConfig signingConfigs.prod
// versionNameSuffix "--prod"
}
}
lint {
checkReleaseBuilds false
disable 'InvalidPackage'
}
testOptions {
execution "ANDROIDX_TEST_ORCHESTRATOR"
}
// namespace 'com.navyjone.wind.dev'
namespace 'com.calcal.wind'
}
flutter {
source '../..'
}
def billing_version = "5.1.0"
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
implementation "com.android.billingclient:billing:$billing_version"
androidTestUtil "androidx.test:orchestrator:1.4.2"
}
apply plugin: 'com.google.gms.google-services'
my pubspec
....
dev_dependencies:
flutter_launcher_icons: ^0.10.0
patrol: ^2.3.1
test: ^1.17.8
.....
patrol:
app_name: My App
flavor: dev
android:
package_name: com.navyjone.wind.dev
ios:
bundle_id: com.example.MyApp // do not concern this line
Hi, please share a logcat file.
Please provide a minimal, reproducible sample.
Otherwise we cannot help you and the issue will be closed.
Closing because of inactivity.
Feel free to open a new issue with all the required information provided, including a minimal, reproducible sample.
Steps to reproduce
Actual results
after waiting for > 20 minute still stuck at
Task :app:connectedDevDebugAndroidTest
I already explore at https://github.com/leancodepl/patrol/issues/1794 but have no luck
https://github.com/leancodepl/patrol/issues/1794#issuecomment-1762851567 -> already change to patrol: ^2.4.0-dev.3 doesn't solve my issue so I change back to 2.3.1
Logs
Patrol version
patrol: ^2.3.1
Patrol Doctor output
Patrol Doctor output
``` Patrol CLI version: 2.2.1 Program adb found in /opt/homebrew/bin/adb Env var $ANDROID_HOME set to /Users/tong/Library/Android/sdk Program xcodebuild found in /usr/bin/xcodebuild Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller ```Flutter Doctor output
Flutter Doctor output
``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.7.6, on macOS 13.5.1 22G90 darwin-arm64, locale en-TH) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.83.0) [✓] Connected device (3 available) [✓] HTTP Host Availability ```