From a416da27935abe306d84d617b6c351eecca0505c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Mon, 16 Feb 2015 14:23:22 -0500 Subject: [PATCH] lib/android: move all android annotations to the `aware` submodule MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/android/aware.nit | 14 ++++++++++++-- lib/android/platform.nit | 12 ++---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/android/aware.nit b/lib/android/aware.nit index 92a3a80..6740fe2 100644 --- a/lib/android/aware.nit +++ b/lib/android/aware.nit @@ -16,5 +16,15 @@ # Android compatibility module # -# Defines the `@android` annotation used to tag `ldflags` annotations. -module aware is new_annotation(android) +# Defines all Android related annoations including the `@android` annotations +# used to tag `ldflags` annotations. +module aware is + new_annotation android + new_annotation java_package + new_annotation min_api_version + new_annotation max_api_version + new_annotation target_api_version + new_annotation android_manifest + new_annotation android_manifest_application + new_annotation android_manifest_activity +end diff --git a/lib/android/platform.nit b/lib/android/platform.nit index 7c15af5..2f44028 100644 --- a/lib/android/platform.nit +++ b/lib/android/platform.nit @@ -14,16 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -module platform is - platform("android") - new_annotation java_package - new_annotation min_api_version - new_annotation max_api_version - new_annotation target_api_version - new_annotation android_manifest - new_annotation android_manifest_application - new_annotation android_manifest_activity -end +# Triggers compilation for the android platform +module platform is platform "android" import java import app -- 1.7.9.5