Skip to content

Commit

Permalink
[Podspec] Unwrap framework header files
Browse files Browse the repository at this point in the history
  • Loading branch information
mrackwitz committed Feb 16, 2016
1 parent 0ed5bcd commit 5fb180e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
48 changes: 24 additions & 24 deletions Realm.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,34 @@ Pod::Spec.new do |s|
s.documentation_url = "https://realm.io/docs/objc/#{s.version}"
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }

public_header_files = 'include/Realm/RLMArray.h',
'include/Realm/RLMCollection.h',
'include/Realm/RLMConstants.h',
'include/Realm/RLMDefines.h',
'include/Realm/RLMListBase.h',
'include/Realm/RLMMigration.h',
'include/Realm/RLMObject.h',
'include/Realm/RLMObjectBase.h',
'include/Realm/RLMObjectSchema.h',
'include/Realm/RLMOptionalBase.h',
'include/Realm/RLMPlatform.h',
'include/Realm/RLMProperty.h',
'include/Realm/RLMRealm.h',
'include/Realm/RLMRealmConfiguration.h',
'include/Realm/RLMResults.h',
'include/Realm/RLMSchema.h',
'include/Realm/Realm.h',
public_header_files = 'include/RLMArray.h',
'include/RLMCollection.h',
'include/RLMConstants.h',
'include/RLMDefines.h',
'include/RLMListBase.h',
'include/RLMMigration.h',
'include/RLMObject.h',
'include/RLMObjectBase.h',
'include/RLMObjectSchema.h',
'include/RLMOptionalBase.h',
'include/RLMPlatform.h',
'include/RLMProperty.h',
'include/RLMRealm.h',
'include/RLMRealmConfiguration.h',
'include/RLMResults.h',
'include/RLMSchema.h',
'include/Realm.h',

# Realm.Dynamic module
'include/Realm/RLMRealm_Dynamic.h',
'include/Realm/RLMObjectBase_Dynamic.h'
'include/RLMRealm_Dynamic.h',
'include/RLMObjectBase_Dynamic.h'

# Realm.Private module
private_header_files = 'include/Realm/*_Private.h',
'include/Realm/RLMAccessor.h',
'include/Realm/RLMListBase.h',
'include/Realm/RLMObjectStore.h',
'include/Realm/RLMOptionalBase.h'
private_header_files = 'include/*_Private.h',
'include/RLMAccessor.h',
'include/RLMListBase.h',
'include/RLMObjectStore.h',
'include/RLMOptionalBase.h'

source_files = 'Realm/*.{m,mm}',
'Realm/ObjectStore/*.cpp',
Expand Down
6 changes: 2 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -894,14 +894,12 @@ case "$COMMAND" in
mv core/include include/core

mkdir -p include/impl/apple
touch Realm/RLMPlatform.h
cp Realm/*.h include
cp Realm/*.hpp include
cp Realm/ObjectStore/*.hpp include
cp Realm/ObjectStore/impl/*.hpp include/impl
cp Realm/ObjectStore/impl/apple/*.hpp include/impl/apple

mkdir -p include/Realm
touch Realm/RLMPlatform.h
cp Realm/*.h include/Realm
else
echo "let swiftLanguageVersion = \"$(get_swift_version)\"" > RealmSwift/SwiftVersion.swift
fi
Expand Down

0 comments on commit 5fb180e

Please sign in to comment.