lib/android: move platform declaration to a submodule
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 2 May 2014 10:39:44 +0000 (06:39 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 21 May 2014 14:36:42 +0000 (10:36 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/android/android.nit
lib/android/platform.nit [new file with mode: 0644]

index 144747e..add5bd7 100644 (file)
@@ -1,5 +1,7 @@
 # This file is part of NIT ( http://www.nitlanguage.org ).
 #
+# Copyright 2014 Alexis Laferrière <alexis.laf@xymus.net>
+#
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at
@@ -19,7 +21,6 @@
 # The tools `android`, `ndk-build` and `ant` must be in your PATH.
 #
 # Will, in the near future, provide services specific to Android.
-module android is platform
+module android
 
-import java
-import app
+import platform
diff --git a/lib/android/platform.nit b/lib/android/platform.nit
new file mode 100644 (file)
index 0000000..9b8b189
--- /dev/null
@@ -0,0 +1,20 @@
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Copyright 2014 Alexis Laferrière <alexis.laf@xymus.net>
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+module platform is platform("android")
+
+import java
+import app