chore: fix native compile

This commit is contained in:
Kyle Fang
2019-06-28 12:11:32 +08:00
parent 971b4fce1f
commit f095cf8452
3 changed files with 14 additions and 11 deletions

View File

@@ -1,25 +1,28 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
classpath 'com.android.tools.build:gradle:3.3.2'
}
}
apply plugin: 'com.android.library'
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion safeExtGet('compileSdkVersion', 28)
defaultConfig {
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', 28)
versionCode 2
versionName "1.1"
}
lintOptions {
abortOnError false

View File

@@ -6,13 +6,13 @@ Pod::Spec.new do |s|
s.description = <<-DESC
RNProgressHud
DESC
s.homepage = ""
s.homepage = "https://github.com/zhigang1992/react-native-progress-display"
s.license = "MIT"
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
s.author = { "author" => "author@domain.cn" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/author/RNProgressHud.git", :tag => "master" }
s.source_files = "RNProgressHud/**/*.{h,m}"
s.source_files = "**/*.{h,m}"
s.requires_arc = true

View File

@@ -1,5 +1,5 @@
{
"name": "react-native-progress-display",
"name": "@zhigang1992/react-native-progress-display",
"version": "1.0.1",
"description": "React Native wrapper for SVProgressHUD library on iOS and KProgressHUD library on Android.",
"main": "progresshud.js",