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
stage('Run tests in parallel') { | |
parallel { | |
stage('SE Tests 1 / 5') { | |
agent { | |
docker { | |
registryCredentialsId 'REGISTRY_CREDENTIALS' | |
image env.DOCKER_IMAGE_NAME | |
registryUrl 'https://private_registry' | |
args "-u root:root -m 4300m --cpus='1.5'" | |
} |
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
private fun createNativeView(handle: Long) { | |
FlutterMain.ensureInitializationComplete(this, arrayOf()) | |
val nativeView = FlutterNativeView(this, true) | |
val callback = FlutterCallbackInformation.lookupCallbackInformation(handle) | |
nativeView.runFromBundle(FlutterRunArguments().apply { | |
bundlePath = FlutterMain.findAppBundlePath(this@Service) | |
libraryPath = callback.callbackLibraryPath | |
entrypoint = callback.callbackName |
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
class MainActivity : FlutterActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
GeneratedPluginRegistrant.registerWith(this) | |
MethodChannel(flutterView, "android_app_retain").apply { | |
setMethodCallHandler { method, result -> | |
if (method.method == "sendToBackground") { | |
moveTaskToBack(true) | |
} |
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
class MainScreen extends StatefulWidget { | |
State createState() => MainScreenState(); | |
} | |
class MainScreenState extends State<MainScreen> { | |
var _androidAppRetain = MethodChannel("android_app_retain"); | |
@override | |
void initState() { | |
super.initState(); |