-
Notifications
You must be signed in to change notification settings - Fork 7
Building Bunsen
The nodejs-mobile-cordova plugin we use to provide node to Bunsen is not configured to support API 26, which is required by the Play store. Connfigure the following files to enable this support:
You need the following Gradle versions:
- Plugin version: 3.2.0
- Gradle version: 4.6
In nodejs-mobile-cordova/bunsenbrowser-build.gradle, increment targetSdkVersion to 26:
android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 26
In the same file, comment out lines in BuildNpmModules: //inputs.file "${rootProject.buildDir}/nodejs-native-assets-temp-build/nodejs-native-assets-${abi_name}/copy.timestamp" //outputs.file "${rootProject.buildDir}/nodejs-native-assets-temp-build/nodejs-native-assets-${abi_name}/nodejs-project/"
In platforms/android/build.gradle
, make sure nodejs plugin is activated:
apply from: "nodejs-mobile-cordova/bunsenbrowser-build.gradle"
also increment
classpath 'com.android.tools.build:gradle:3.2.0'
gradleVersion = '4.6.0'
To refresh your gradle files, run,
cd platforms/android
./gradlew assembleDebug --info --rerun-tasks