Skip to content

Implement custom build step for ant to generate metadata #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
atanasovg opened this issue Mar 25, 2015 · 0 comments
Closed

Implement custom build step for ant to generate metadata #47

atanasovg opened this issue Mar 25, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@atanasovg
Copy link
Contributor

The runtime expects a pre-built metadata as part of the application package. This metadata is currently manually updated in the test application. Additionally, at CLI level, we run the ant build twice to ensure proper metadata and then to embed it in the application package.

To resolve this, we should:

  • Reference the metadata generator in the test application.
  • Add a custom build step for the -post-compile hook in ant.
  • Run the metadata generator on the already built source plus the minimum targeted Android API level.
  • Use the <uses-sdk android:minSdkVersion="17" android:targetSdkVersion="21" /> information available in the AndroidManifest.xml (we should be able to retrieve this from ant's variables) to get the proper Android.jar version.
  • Put the output of this custom build step in the assets/metadata folder and let ant continue with the package step.

Once this is done, we will use the same logic at CLI level to ensure the proper metadata, depending on the minimum targeted Android API level.

@atanasovg atanasovg added this to the 0.10 milestone Mar 25, 2015
teobugslayer added a commit to NativeScript/nativescript-cli that referenced this issue Apr 1, 2015
Instead, the project template will supply a custom ants hook to do the work

Also, cache the platformData
Also, starting ant through the user command interpreter falling back to cmd

See NativeScript/android#47
teobugslayer added a commit to NativeScript/nativescript-cli that referenced this issue Apr 1, 2015
Instead, the project template will supply a custom ants hook to do the work

Also, cache the platformData
Also, starting ant through the user command interpreter falling back to cmd

See NativeScript/android#47
teobugslayer added a commit to NativeScript/nativescript-cli that referenced this issue Apr 1, 2015
Instead, the project template will supply a custom ants hook to do the work

Also, cache the platformData
Also, starting ant through the user command interpreter falling back to cmd

See NativeScript/android#47
teobugslayer added a commit to NativeScript/nativescript-cli that referenced this issue Apr 1, 2015
Instead, the project template will supply a custom ants hook to do the work

Also, cache the platformData
Also, starting ant through the user command interpreter falling back to cmd

See NativeScript/android#47
teobugslayer added a commit to NativeScript/nativescript-cli that referenced this issue Apr 6, 2015
Instead, the project template will supply a custom ants hook to do the work

Also, cache the platformData
Also, starting ant through the user command interpreter falling back to cmd

See NativeScript/android#47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants