Cordova android build version

Blog RSS Feed

We are happy to announce that we have just released Cordova Android 9.0.0 ! This is one of Cordova’s supported platforms for building Android mobile applications.

To upgrade:

Release Highlights

Added Kotlin Support

Kotlin is one of the newest statically typed languages for developing Android apps. It is designed to work fully with the existing language, Java.

By default, Cordova has Kotlin disabled but it can be enabled with the GradlePluginKotlinEnabled preference in config.xml .

Additionally, Kotlin’s coding style and version are configurable. By default, Cordova sets the coding style as official and uses version 1.3.50 .

Below is an example config.xml for enabling and configuring Kotlin.

For plugin developers, it is recommended to ensure that the Kotlin files are placed into the platforms src/main/kotlin directory.

Added AndroidX Support

AndroidX is the new and improved namespace for the Android Support Libraries. The original support libraries are no longer maintained.

It is recommended to use AndroidX so that your app is running the latest support libraries but, by default, Cordova has AndroidX support disabled for compatibility with existing plugins.

A lot of the Android supported plugins are still using the old support libraries which can not build when using the AndroidX support libraries. It is recommended to research each plugin to see if they support AndroidX before enabling this feature.

It is recommended for plugin developers to start migrating to support AndroidX. App developers could also use Jetifier to automatically migrates their existing third-party libraries to use AndroidX.

You can enable this feature by setting the AndroidXEnabled preference to true in config.xml .

If you were previously using the cordova-plugin-androidx plugin to enable AndroidX support, this plugin is no longer needed with this preference flag.

The cordova-plugin-androidx-adapter plugin can be used to migrate the legacy references to the new AndroidX references.

Added Google Services Support

To use Google APIs or Firebase services, the Gradle plugin Google Services is required to be enabled when building your Android application.

For plugin developers, this can be enabled by setting to the app’s config.xml the GradlePluginGoogleServicesEnabled preference flag. From the plugin.xml file, you can do this by adding the following lines:

Android Version Support Update

  • The default target SDK version is set to 29.
  • The minimum SDK version is set to 22.
  • The minimum supported Android version is 5.1.

NOTE: because Cordova has increased the minimum SDK version to 22, we no longer support or test with Android 5.0 or lower.

Gradle and Gradle Plugin Version Support Update

  • Cordova has increased the default Gradle version to 6.5.
  • Cordova has increased the Gradle Plugin to version 4.0.0

Please report any issues you find at issues.cordova.io!

Читайте также:  Лицензия доктор веб 2021 для андроид

Full Changelog

  • GH-1005 chore: set AndroidX off by default
  • GH-971 fix: Accept multiple mime types on file input
  • GH-1001 fix: support both adaptive and standard icons at the same time
  • GH-985 fix: Plugin install fails when preview sdk is installed
  • GH-994 chore: cleanup yaml files
  • GH-999 chore: remove trailing spaces from Java sources
  • GH-992 chore: update some dependencies
  • GH-998 chore: remove trailing spaces from framework build files
  • GH-997 chore: remove trailing spaces from project template
  • GH-996 chore: remove trailing spaces from bat files
  • GH-995 remove trailing spaces from markdown files
  • GH-993 chore: update devDependencies
  • GH-987 breaking: reduce combined response cutoff to 16 MB
  • GH-988 major: Gradle 6.5 & Android Gradle plugin 4.0.0 updates
  • GH-990 chore: remove trailing spaces from app/build.gradle
  • GH-989 breaking: remove legacy/build.gradle from template
  • GH-978 fix: wait_for_boot waiting forever
  • GH-965 fix: Increased detectArchitecture() timeout
  • GH-962 breaking: Bump Android gradle plugin to 3.6.0
  • GH-948 feature: JVM Args flag
  • GH-951 fix: ANDROID_SDK_ROOT variable
  • GH-959 test: synced AndroidX gradle versions to the same version as the Android test
  • GH-960 feat: com.android.tools.build:gradle:3.5.3
  • GH-956 chore(npm): add package-lock.json
  • GH-958 chore(npm): add ignore list
  • GH-957 chore: various cleanup
  • GH-955 chore(eslint): bump package & apply eslint fix
  • GH-954 breaking(npm): bump packages
  • GH-953 chore(npm): use short notation in package.json
  • GH-823 fix: prevent exit fullscreen mode from closing application
  • GH-950 fix: removed redundent logcat print
  • GH-915 breaking: bump minSdkVersion to 22 and drop pre-Lollipop specific code
  • GH-941 fix: GH-873 App bundle builds to obey command-line arguments
  • GH-940 ci: drop travis & move codecov to gh-actions
  • GH-929 chore: updated README to reflect what Android requires more accurately, which is Java 8, not anything less, not anything greater. Java 1.8.x is required.
  • GH-937 fix: GH-935 replaced compare-func with native sort method
  • GH-939 fix: test failure with shebang interpreter in rewired files
  • GH-911 refactor: use es6 class
  • GH-910 refactor (eslint): use cordova-eslint
  • GH-909 chore: remove appveyor residual
  • GH-895 feat: add github actions
  • GH-842 refactor: remove shelljs dependency
  • GH-896 feat: add Kotlin support
  • GH-901 feat: add AndroidX support
  • GH-849 fix: cordova requirements consider the android-targetSdkVersion
  • GH-904 fix (adb): shell to return expected stdout
  • GH-792 feat: upgrade gradle to 6.1 & gradle build tools to 3.5.3
  • GH-902 chore: remove .project file & add .settings to gitignore
  • GH-900 refactor: simplify doFindLatestInstalledBuildTools
  • GH-751 feat: use Java package name for loading BuildConfig
  • GH-898 chore: rename gradle plugin google services preference options
  • GH-893 feat: add Google Services support
  • GH-709 feat: add version-compare library to compare build-tools versions properly.
  • GH-831 chore: ignore auto-generated eclipse buildship files
  • GH-848 breaking: increased default target sdk to 29
  • GH-859 breaking: removed unnecessary project name restriction
  • GH-833 chore: drop q module
  • GH-862 chore: replace superspawn & child_process with execa
  • GH-860 feat: don’t filter gradle’s stderr anymore
  • GH-832 chore: drop node 6 and 8 support
  • GH-890 chore: bump version to 9.0.0-dev
  • GH-697 chore: optimization code
  • GH-863 chore: removed comment that serves no purpose
  • GH-861 chore: update jasmine to 3.5.0
  • GH-858 chore: modernize our one E2E test
  • GH-854 chore: ensure to lint as many files as possible
Читайте также:  Id changer android как работает

We are happy to announce that we have just released Cordova iOS.

We are happy to announce that cordova-common@4.0.2 was released in July 2020.

Источник

Blog RSS Feed

We are happy to announce that we have just released Cordova Android 10.0.0 ! This is one of Cordova’s supported platforms for building Android mobile applications.

To upgrade:

Release Highlights

AndroidX Only Support

In this release, we have completely migrated to the AndroidX library and no longer support the Android Support Library. All plugins that continue to use the Android Support Library will need to be updated to reference the new AndroidX library.

If plugins have not been updated, you can still use the cordova-plugin-androidx-adapter plugin, which can be used to migrate the legacy references to the new AndroidX references.

WebViewAssetLoader Support

By default, the WebViewAssetLoader is enabled and allows apps to serve their content from a ‘proper’ origin. This will makes routing work easily for frameworks like Angular.

With no additional configurations, the app content is served from https://localhost/ . You can configure the hostname by setting the preference option hostname .

The scheme, https , is not configurable by nature.

Please note that this is a breaking change that will cause data associated with the file:// scheme, such as cookies, local storage, local cache, and web-based databases, to be lost. You will need to handle the migration of data. If you are unable to migrate the data at this time, you can revert this setting by setting the AndroidInsecureFileModeEnabled preference flag.

Setting this flag will keep the content on the file:// scheme, which Google reports to be insecure.

Android App Bundles aab Support

By default, release builds will now generate an aab formatted package type for release.

By nature, aab packages can not be deployed or pushed manually to a device for testing. If you need to test a release build, you will need to change the package type back to apk with the packageType flag.

Debug builds will continue to create an apk formatted package.

Tooling and Default Support Bump

  • Target SDK ( targetSdk ): 30
  • SDK Build Tool: 30.0.3
  • Gradle: 7.1.1
  • Kotlin: 1.5.20
  • Android Gradle Plugin (AGP): 4.2.2
  • Google Services Gradle Plugin: 4.3.5

Node Support

Since Node 10 is no longer being supported by the Node.js team, we have dropped support for Node 10.

Java 11 Support

With the current release of Android Studio 4.2, the Android tooling can now support running on Java 11. Please note that this does not mean you can start compiling Java 11 source code.

Please report any issues you find at issues.cordova.io!

Читайте также:  Any do android source code

Notice of Issue

There is a known issue for users or plugins that enable the Google Services Gradle plugin.

We are preparing and aiming for a patch release vote within the next three days.

Full Changelog

Breaking:

  • GH-1052 feat!: only support AndroidX
  • GH-1137 feat!: implement WebViewAssetLoader
  • GH-1268 feat!: release build defaults to aab package type
  • GH-1182 feat!: bump target sdk@30 w/ build-tool@30.0.3
  • GH-1257 feat!: upgrade gradle@7.1.1
  • GH-1197 feat!: upgrade gradle@6.8.3
  • GH-1256 feat!: upgrade kotlin@1.5.20
  • GH-1204 feat!: upgrade kotlin@1.4.32
  • GH-1200 feat!: upgrade kotlin@1.4.31
  • GH-1255 feat!: upgrade android-gradle-plugin@4.2.2
  • GH-1232 feat!: upgrade android-gradle-plugin@4.2.1
  • GH-1198 feat!: upgrade android-gradle-plugin@4.1.3
  • GH-1199 feat!: upgrade Google Services Gradle Plugin@4.3.5
  • GH-1262 feat!: bump appcompat@1.3.0
  • GH-1258 feat!: bump android.webkit@1.4.0
  • GH-1252 feat!: drop abandoned com.github.dcendents:android-maven-gradle-plugin
  • GH-1212 feat!: unify & fix gradle library/tooling overrides
  • GH-1138 feat(allow-list)!: integrate and refactor core plugin
  • GH-1201 feat!: upgrade jfrog gradle-bintray-plugin@1.8.5
  • GH-1279 chore!: bump all dependencies
  • GH-1278 chore!: drop node 10 support
  • GH-1205 chore! ( npm ): update all dependencies
  • GH-1274 cleanup!: remove deprecated settings & add todo comments
  • GH-1048 cleanup!: remove keystore password prompt
  • GH-1251 cleanup!: drop jcenter & update dependencies
  • GH-1269 refactor!: do not copy JS lib to platform project
  • GH-1270 refactor(Api)!: use version from package.json
  • GH-1266 refactor(run)!: run method
  • GH-1083 refactor!: drop support for android SDK tool
  • GH-1100 refactor!: remove most platform binaries

Features:

  • GH-1241 feat: remove java 1.8 version check
  • GH-1254 feat: support webkit version override
  • GH-1229 feat: CORDOVA_JAVA_HOME env variable
  • GH-1222 feat: add backwards compatibility mode for WebViewAssetLoader
  • GH-1166 feat: overload PluginEntry constructor to set onload property
  • GH-1208 feat: allow appcompat version to be configurable
  • GH-1047 feat: Deprecated onRequestPermissionResult in favour for onRequestPermissionsResult for consistency

Fixes:

  • GH-1283 fix: add missing apache-license header to getASPath.bat
  • GH-1275 fix: add WebViewAssetloader to default allow list
  • GH-1216 fix: request focus after custom view hided
  • GH-1264 fix: missing super.onRequestPermissionsResult error ( MissingSuperCall )
  • GH-563 fix(build): support tilde expansion on Windows
  • GH-1220 fix( requirements check): use regex to get java version from javac output
  • GH-1227 fix(prepare): delete splash screens if none are used
  • GH-1228 fix: java checks
  • GH-1276 fix: remove forced default gradle.daemon setting

Refactors:

  • GH-1265 refactor: do not infer project root from script location
  • GH-1267 refactor: use target SDK of built APK to determine best emulator
  • GH-1253 refactor: gradle cleanup
  • GH-1260 refactor( check_reqs ): drop originalError param from check_android_target
  • GH-1246 refactor( env/java ): improve tests and implementation

Chores & Cleanup:

  • GH-1273 chore: remove old VERSION file
  • GH-1272 cleanup: delete old ANT & Eclipse files
  • GH-1141 cleanup: remove app cache settings

CI, Build & Testing:

  • GH-1218 ci: Add Node16 to CI matrix
  • GH-1271 build: build cordova.js during npm prepare
  • GH-1207 test( AndroidManifest ): update theme to Theme.AppCompat.NoActionBar
  • GH-1263 test( check_reqs ): do not hardcode DEFAULT_TARGET_API
  • GH-1259 test( prepare ): factor out common vars

We are happy to announce that we have just released an update.

Источник

Оцените статью