diff --git a/android/build.gradle b/android/build.gradle index 56c5c8d..1c685f3 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -91,6 +91,6 @@ kapt { } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.finogeeks.lib:finapplet:2.41.11' - implementation 'com.finogeeks.mop:plugins:2.41.11' + implementation 'com.finogeeks.lib:finapplet:2.41.13' + implementation 'com.finogeeks.mop:plugins:2.41.13' } \ No newline at end of file diff --git a/bundle.sh b/bundle.sh new file mode 100755 index 0000000..90b1cf1 --- /dev/null +++ b/bundle.sh @@ -0,0 +1,68 @@ +export LANG=en_US.UTF-8 +export FASTLANE_DISABLE_COLORS=1 + + +export version="$1" +export iosVersion="$2" +export androidVersion="$3" + +#version=`git describe --abbrev=0 --tags | tr -d '\\n' | tr -d '\\t'` + +echo "当前版本号:${version}" +echo "依赖的iOS:${iosVersion}" +echo "依赖的Android:${androidVersion}" + +#git reset --hard +#git checkout ${version} + +# 更新 pubspec.yaml +cp -r pubspec.tpl.yaml pubspec.yaml +sed -i "" "s/__mop_flutter_sdk_version__/${version}/g" pubspec.yaml + +# 更新iOS podspec +if [ -n "$iosVersion" ] +then +echo "更新mop.podspec====>" +cp -r ios/mop.podspec.tpl ios/mop.podspec +sed -i "" "s/__finapplet_version__/${iosVersion}/g" ios/mop.podspec + +fi + +# 更新android gradle +if [ -n "$androidVersion" ] +then +echo "更新build.gradle====>" +cp -r android/build.gradle.tpl android/build.gradle +sed -i "" "s/__finapplet_version__/${androidVersion}/g" android/build.gradle + +fi + +cat pubspec.yaml + +git remote add ssh-origin ssh://git@gitlab.finogeeks.club:2233/finclipsdk/finclip-flutter-sdk.git + +git add . +git commit -m "release: version:$version" +git tag -d ${version} +git push ssh-origin --delete tag ${version} +git tag -a ${version} -m 'FinClip-Flutter-SDK发版' +git push ssh-origin HEAD:refs/heads/master --tags -f + + +#export http_proxy=http://127.0.0.1:1087 +#export https_proxy=http://127.0.0.1:1087 + + +flutter packages pub publish --dry-run --server=https://pub.dartlang.org + +flutter packages pub publish --server=https://pub.dartlang.org --force + +#unset http_proxy +#unset https_proxy + + +git remote add github ssh://git@github.com/finogeeks/mop-flutter-sdk.git + +#git push github HEAD:refs/heads/master --tags + +git push github HEAD:refs/heads/master diff --git a/ios/mop.podspec b/ios/mop.podspec index b887f85..7426ffd 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk. s.dependency 'Flutter' s.ios.deployment_target = '9.0' - s.dependency 'FinApplet' , '2.41.11' - s.dependency 'FinAppletExt' , '2.41.11' + s.dependency 'FinApplet' , '2.41.13' + s.dependency 'FinAppletExt' , '2.41.13' end diff --git a/pubspec.yaml b/pubspec.yaml index 67e1ed0..503c6a6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: mop description: A Finogeeks MiniProgram Flutter SDK. -version: '2.41.11' +version: '2.41.13' homepage: https://github.com/finogeeks/mop-flutter-sdk environment: