Skip to content

Conversation

@camsim99
Copy link
Contributor

@camsim99 camsim99 commented Nov 1, 2024

Removes .flutter-plugins reference from example by (0) checking out the stable Flutter branch, (1) deleting the packages/espresso/example/android directory, (2) running (in the packages/espresso directory)

flutter create example --platforms android -a kotlin --org "com.example.espresso_example"

and then (3) manually made the following changes:

  • Deleted example/analysis_options.yaml (added by command)
  • Deleted example/test/ (added by command)
  • Restored example/android/app/src/androidTest (deleted by command)
  • Restored example/android/app/src/main/java/com/example/espresso_example/MainActivity.java (deleted by command)
  • Reset android:usesCleartextTraffic to be true in example/android/app/src/debug/AndroidManifest.xml
  • Added back dependency block to example/android/build.gradle.
  • Updated Gradle version from 8.3 to 8.7 (downgraded by the command)
  • Added back artifact hub
  • Removed template TODOs
  • Correct namespace to "com.example.espresso_example"
  • Correct manifest label to "espresso_example" to maintain consistency
  • Add back gradle.projectsEvaluated block to example/android/build.gradle
  • Bump AGP version back up to 8.5.1
  • Bump Kotlin version back up to 1.9.0
  • Delete MainActivity.java

Part of flutter/flutter#157660.

Pre-launch Checklist

@camsim99 camsim99 changed the title [espresso] Remove .flutter-plugins reference from example app [espresso] Remove .flutter-plugins reference from example app Nov 5, 2024
@camsim99
Copy link
Contributor Author

To land this, we will need to figure out how to enable Android UI tests with Kotlin.

@camsim99
Copy link
Contributor Author

Closing this as it was already completed as part of flutter/flutter#157660

@camsim99 camsim99 closed this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant