From 18d56cb6e22b8ed8fce3cd8c777a0cd75a71150e Mon Sep 17 00:00:00 2001 From: developer Date: Wed, 27 Jan 2021 19:22:45 +0800 Subject: [PATCH] fix: android version --- android/build.gradle.tpl | 96 ++++++++++++++++++++++++++++++++++++++++ ios/mop.podspec.tpl | 8 ++-- 2 files changed, 100 insertions(+), 4 deletions(-) create mode 100644 android/build.gradle.tpl diff --git a/android/build.gradle.tpl b/android/build.gradle.tpl new file mode 100644 index 0000000..3334d92 --- /dev/null +++ b/android/build.gradle.tpl @@ -0,0 +1,96 @@ + +apply plugin: 'com.android.library' + +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-kapt' +apply plugin: 'kotlin-android-extensions' + +group 'com.finogeeks.mop' +version '1.0' + +buildscript { + repositories { + google() + jcenter() + maven { + url "https://gradle.finogeeks.club/repository/finogeeks/" + credentials { + username "finclip" + password "Abcd@@1234" + } + } + maven { + url "https://gradle.finogeeks.club/repository/applet/" + credentials { + username "finclip" + password "Abcd@@1234" + } + } + maven { url "https://jitpack.io" } + + } + + dependencies { + classpath 'com.android.tools.build:gradle:3.5.3' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61" + + } +} + +rootProject.allprojects { + repositories { + google() + jcenter() + maven { + url "https://gradle.finogeeks.club/repository/finogeeks/" + credentials { + username "finclip" + password "Abcd@@1234" + } + } + maven { + url "https://gradle.finogeeks.club/repository/applet/" + credentials { + username "finclip" + password "Abcd@@1234" + } + } + maven { url "https://jitpack.io" } + + } +} + + +android { + compileSdkVersion 28 + + defaultConfig { + minSdkVersion 21 + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + lintOptions { + disable 'InvalidPackage' + } +} + +kapt { + arguments { + arg("moduleName", project.getName()) + } +} +dependencies { + implementation fileTree(include: ['*.jar'], dir: 'libs') + implementation 'com.finogeeks.lib:finapplet:__finapplet_version__' + implementation 'com.finogeeks.mop:plugins:__finapplet_version__' +} \ No newline at end of file diff --git a/ios/mop.podspec.tpl b/ios/mop.podspec.tpl index 975c020..b6b2973 100644 --- a/ios/mop.podspec.tpl +++ b/ios/mop.podspec.tpl @@ -4,13 +4,13 @@ Pod::Spec.new do |s| s.name = 'mop' s.version = '0.1.0' - s.summary = 'A new flutter plugin project.' + s.summary = 'finclip miniprogram flutter sdk' s.description = <<-DESC -A new flutter plugin project. +A finclip miniprogram flutter sdk. DESC - s.homepage = 'http://example.com' + s.homepage = 'https://www.finclip.com' s.license = { :file => '../LICENSE' } - s.author = { 'Your Company' => 'email@example.com' } + s.author = { 'finogeeks' => 'contact@finogeeks.com' } s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h'