Skip to content

Commit

Permalink
swiftkotlin対応ビルド
Browse files Browse the repository at this point in the history
  • Loading branch information
kochizufan committed May 17, 2019
1 parent a1f7cea commit 0741ca6
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/maplat.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/maplat_core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified example.zip
Binary file not shown.
20 changes: 17 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,24 @@ gulp.task('mobile_build_task', function() {
removeResource();
copyResource(mobileCopy);
copyResource(mobileBaseCopy);
fs.copySync('mobile.html', './mobile_android/lib-maplat/src/main/res/raw/mobile_html');
fs.copySync('mobile.html', './mobile_ios_lib/MaplatView/Maplat.bundle/mobile.html');
fs.copySync('mobile.html', './mobile_android/mobile_android_lib/src/main/res/raw/mobile_html');
fs.copySync('mobile.html', './mobile_ios/mobile_ios_lib/MaplatView/Maplat.bundle/mobile.html');
copyAssets();
return Promise.resolve();
return Promise.all([new Promise(function(resolve, reject) {
gulp.src(['./mobile_android/mobile_android_lib/build.gradle'])
.pipe(concat('build.gradle'))
.pipe(replace(/def VERSION_NAME = ".+"/g, 'def VERSION_NAME = "' + pkg.version + '"'))
.on('error', reject)
.pipe(gulp.dest('./mobile_android/mobile_android_lib/'))
.on('end', resolve);
}),new Promise(function(resolve, reject) {
gulp.src(['./mobile_ios/mobile_ios_lib/MaplatView/Info.plist'])
.pipe(concat('Info.plist'))
.pipe(replace(/<key>CFBundleShortVersionString<\/key>\n\t<string>.+<\/string>/g, '<key>CFBundleShortVersionString</key>\n\t<string>' + pkg.version + '</string>'))
.on('error', reject)
.pipe(gulp.dest('./mobile_ios/mobile_ios_lib/MaplatView/'))
.on('end', resolve);
})]);
});

gulp.task('mobile_build', gulp.series('js_build', 'css_build', 'mobile_build_task'));
Expand Down
2 changes: 1 addition & 1 deletion mobile_android/mobile_android_lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven'

def VERSION_NAME = "0.1.1"
def VERSION_NAME = "0.4.9"

android {
compileSdkVersion 27
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Maplat - Maplat is the cool Historical Map/Illustrated Map Viewer. It can transform each map coordinates with nonlinear but bijective projection and makes possible that the maps can collaborate with GPS/accurate maps, without distorting original maps. Data editor of this solution is provided as another project, MaplatEditor.
* @version v0.4.8
* @version v0.4.9
* @link https://github.com/code4nara/Maplat/wiki
* @license MIT
* Copyright (c) 2015- Kohei Otsuka, Code for Nara, RekishiKokudo project
Expand Down
2 changes: 1 addition & 1 deletion mobile_android/mobile_android_sample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
//buildToolsVersion '27.0.3'
defaultConfig {
applicationId "jp.tilemap.maplatapptest"
minSdkVersion 21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
//buildToolsVersion '27.0.3'
defaultConfig {
applicationId "jp.tilemap.maplatapptest"
minSdkVersion 21
Expand Down
2 changes: 1 addition & 1 deletion mobile_ios/mobile_ios_lib/MaplatView/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>0.4.9</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Maplat",
"description": "Maplat is the cool Historical Map/Illustrated Map Viewer. It can transform each map coordinates with nonlinear but bijective projection and makes possible that the maps can collaborate with GPS/accurate maps, without distorting original maps. Data editor of this solution is provided as another project, MaplatEditor.",
"version": "0.4.8",
"version": "0.4.9",
"homepage": "https://github.com/code4nara/Maplat/wiki",
"license": "MIT",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ workbox.clientsClaim();
self.__precacheManifest = [
{
"url": ".",
"revision": "Thu May 09 2019 20:41:51 GMT+0900 (GMT+09:00)"
"revision": "Fri May 17 2019 17:43:41 GMT+0900 (GMT+09:00)"
},
{
"url": "dist/maplat.js",
"revision": "6ee434ad45cd49c37bd71eed7a693edc"
"revision": "4567f1aaaa54da6233e5524699e0ddb7"
},
{
"url": "dist/maplat.css",
Expand Down

0 comments on commit 0741ca6

Please sign in to comment.