Skip to content

Commit

Permalink
v5.0.0 (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek authored Oct 12, 2024
1 parent 772274f commit d253fb0
Show file tree
Hide file tree
Showing 62 changed files with 3,930 additions and 4,548 deletions.
477 changes: 184 additions & 293 deletions README.md

Large diffs are not rendered by default.

21 changes: 11 additions & 10 deletions RNPermissions.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))

Pod::Spec.new do |s|
s.name = "RNPermissions"
s.name = "RNPermissions"

s.version = package["version"]
s.license = package["license"]
s.summary = package["description"]
s.author = package["author"]
s.homepage = package["homepage"]
s.version = package["version"]
s.license = package["license"]
s.summary = package["description"]
s.author = package["author"]
s.homepage = package["homepage"]

s.platforms = { :ios => "12.4", :tvos => "12.4" }
s.requires_arc = true
s.platforms = { :ios => "12.4", :tvos => "12.4" }
s.requires_arc = true

s.source = { :git => package["repository"]["url"], :tag => s.version }
s.resource_bundles = { 'RNPermissionsPrivacyInfo' => 'ios/PrivacyInfo.xcprivacy' }

s.source = { :git => package["repository"]["url"], :tag => s.version }
s.source_files = "ios/*.{h,mm}"
# s.frameworks = <frameworks>
# s.resource_bundles = <resource_bundles>

if ENV['RCT_NEW_ARCH_ENABLED'] == "1" then
install_modules_dependencies(s)
Expand Down
12 changes: 7 additions & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ buildscript {
gradlePluginPortal()
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet("kotlinVersion", "1.8.0")}")
classpath("com.android.tools.build:gradle:8.1.1")
}
}

Expand All @@ -16,14 +17,15 @@ def isNewArchitectureEnabled() {
}

apply plugin: "com.android.library"
apply plugin: "kotlin-android"

if (isNewArchitectureEnabled()) {
apply plugin: "com.facebook.react"
}

android {
buildToolsVersion safeExtGet("buildToolsVersion", "33.0.0")
compileSdkVersion safeExtGet("compileSdkVersion", 33)
buildToolsVersion safeExtGet("buildToolsVersion", "34.0.0")
compileSdkVersion safeExtGet("compileSdkVersion", 34)

if (project.android.hasProperty("namespace")) {
namespace "com.zoontek.rnpermissions"
Expand All @@ -39,8 +41,8 @@ android {
}
defaultConfig {
buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString())
minSdkVersion safeExtGet("minSdkVersion", 21)
targetSdkVersion safeExtGet("targetSdkVersion", 33)
minSdkVersion safeExtGet("minSdkVersion", 23)
targetSdkVersion safeExtGet("targetSdkVersion", 34)
}
lintOptions {
abortOnError false
Expand Down
Loading

0 comments on commit d253fb0

Please sign in to comment.