Skip to content

Commit

Permalink
Update podspec to auto versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
kosratdev committed May 22, 2024
1 parent 89b8041 commit a29ae23
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion MuslimData.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

require 'git'
# Define a function to get the latest git tag
def latest_git_tag
git = Git.open('.')
git_tag = git.describe(tags: true)
git_tag.strip
end


Pod::Spec.new do |s|
s.name = 'MuslimData'
s.version = '2.0.0'
s.version = latest_git_tag
s.summary = 'Islamic library (Prayer Times [fixed and calculated], Names of Allah, and Azkars).'

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit a29ae23

Please sign in to comment.