diff --git a/make.sh b/make.sh index f3562307..4e71192a 100755 --- a/make.sh +++ b/make.sh @@ -101,6 +101,7 @@ fi sh make_ios.sh -b ${bundle_id_production} -s ${bundle_id_staging} -n ${project_name} -iv ${minimum_ios_version} rm -rf make_ios.sh rm -rf make.sh + # =====GENERATE ANDROID AND SHARED MODULES + REST OF COMPONENTS===== # TODO: Fully generate the KMM project later # @@ -112,3 +113,9 @@ rsync -av \ --exclude 'make.sh' \ --exclude './sample' \ ./ sample/ + +# Correct path in Dangerfile in sample +sed -i '' "s/'.\//'.\/sample\/ios\//g" ./sample/ios/dangerfile +sed -i '' 's/".\//".\/sample\/ios\//g' ./sample/ios/dangerfile +sed -i '' "s/'\.swiftlint\.yml'/'\.\/sample\/ios\/\.swiftlint\.yml'/g" ./sample/ios/dangerfile +sed -i '' "s/'Pods\/\*\*'/'sample\/ios\/Pods\/\*\*'/g" ./sample/ios/dangerfile diff --git a/make_ios.sh b/make_ios.sh index ab00e33f..e22e8ff7 100644 --- a/make_ios.sh +++ b/make_ios.sh @@ -67,10 +67,6 @@ sed -i '' "$(($line_number + 1))i\\"$'\n'"\ # Correct path in Dangerfile sed -i '' "s/require '\.\/fastlane\/Constants\/Constants'//g" dangerfile -sed -i '' "s/'.\//'.\/sample\/ios\//g" dangerfile -sed -i '' 's/".\//".\/sample\/ios\//g' dangerfile -sed -i '' "s/'\.swiftlint\.yml'/'\.\/sample\/ios\/\.swiftlint\.yml'/g" dangerfile -sed -i '' "s/'Pods\/\*\*'/'sample\/ios\/Pods\/\*\*'/g" dangerfile echo "=> Remove unnecessary files after generating the iOS module" rm -rf .github