-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactory and add support platform #28
Open
Valeryn4
wants to merge
14
commits into
godot-sdk-integrations:master
Choose a base branch
from
Valeryn4:tvOS
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5d9bf41
add request revwiew controller module
Valeryn4 510d3a7
support promouting purchaces
Valeryn4 ba38d7d
Merge branch 'master' of github.com:godotengine/godot-ios-plugins
Valeryn4 f22db6e
Merge branch 'godotengine:master' into master
Valeryn4 8d4d933
Merge branch 'master' of github.com:Valeryn4/godot-ios-plugins
Valeryn4 a4ef9e7
3.4-stable
naithar 4ee355b
Add tvOS and refactory
Valeryn4 d1e1131
add platform change on scripts
Valeryn4 8ec73f5
add bit flag
Valeryn4 c9d4081
tvOS update
Valeryn4 a98de09
fix generate script
Valeryn4 231942e
need squash
Valeryn4 872309c
upd scons
Valeryn4 44fc8ea
upd scons
Valeryn4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule godot
updated
4448 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Compile static libraries | ||
|
||
# ARM64 Device | ||
scons target=$2 arch=arm64 plugin=$1 version=$3 | ||
# ARM7 Device | ||
scons target=$2 arch=armv7 plugin=$1 version=$3 | ||
scons platform=$4 target=$2 arch=arm64 plugin=$1 version=$3 | ||
if [[$4 == "iphone"]] then; | ||
#ARMv7 Device | ||
scons platform=$4 target=$2 arch=arm7 plugin=$1 version=$3 | ||
fi | ||
|
||
# x86_64 Simulator | ||
scons target=$2 arch=x86_64 simulator=yes plugin=$1 version=$3 | ||
scons platform=$4 target=$2 arch=x86_64 simulator=yes plugin=$1 version=$3 | ||
# ARM64 Simulator | ||
scons platform=$4 target=$2 arch=arm64 simulator=yes plugin=$1 version=$3 | ||
|
||
# Creating a fat libraries for device and simulator | ||
# lib<plugin>.<arch>-<simulator|iphone>.<release|debug|release_debug>.a | ||
lipo -create "./bin/lib$1.x86_64-simulator.$2.a" \ | ||
"./bin/lib$1.armv7-iphone.$2.a" \ | ||
"./bin/lib$1.arm64-iphone.$2.a" \ | ||
-output "./bin/$1.$2.a" | ||
if [[$4 == "iphone"]] then; | ||
lipo -create "./bin/lib$1.x86_64-$4.simulator.$2.a" \ | ||
"./bin/lib$1.arm64-$4.simulator.$2.a" \ | ||
"./bin/lib$1.arm64-$4.$2.a" \ | ||
"./bin/lib$1.armv7-$4.$2.a" \ | ||
-output "./bin/$1.$4-$2.a" | ||
elif [[$4 == "tvos"]] then; | ||
lipo -create "./bin/lib$1.x86_64-$4.simulator.$2.a" \ | ||
"./bin/lib$1.arm64-$4.simulator.$2.a" \ | ||
"./bin/lib$1.arm64-$4.$2.a" \ | ||
-output "./bin/$1.$4-$2.a" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
#!/bin/bash | ||
|
||
GODOT_PLUGINS="gamecenter inappstore icloud camera arkit apn photo_picker" | ||
if [[$1 == "tvos"]] then; | ||
GODOT_PLUGINS="inappstore icloud" | ||
elif [[$1 == "iphone"]] then; | ||
GODOT_PLUGINS="gamecenter inappstore icloud camera arkit apn photo_picker" | ||
fi | ||
|
||
# Compile Plugin | ||
rm -rf ./bin/$1 | ||
mkdir ./bin/$1 | ||
|
||
# Compile Plugin | ||
for lib in $GODOT_PLUGINS; do | ||
./scripts/generate_static_library.sh $lib release $1 | ||
./scripts/generate_static_library.sh $lib release_debug $1 | ||
mv ./bin/${lib}.release_debug.a ./bin/${lib}.debug.a | ||
./scripts/generate_static_library.sh $lib release $2 | ||
./scripts/generate_static_library.sh $lib release_debug $2 | ||
mv ./bin/$1/${lib}.release_debug.a ./bin/$1/${lib}.debug.a | ||
done | ||
|
||
# Move to release folder | ||
|
||
rm -rf ./bin/release | ||
mkdir ./bin/release | ||
|
||
mkdir ./bin/$1/release | ||
|
||
# Move Plugin | ||
for lib in $GODOT_PLUGINS; do | ||
mkdir ./bin/release/${lib} | ||
mv ./bin/${lib}.{release,debug}.a ./bin/release/${lib} | ||
mkdir ./bin/$1/release/${lib} | ||
mv ./bin/$1/${lib}.{release,debug}.a ./bin/$1/release/${lib} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
GODOT_PLUGINS="gamecenter inappstore icloud camera arkit apn photo_picker" | ||
#call ./scripts/releasexcframework.sh iphone 3.x | ||
#call ./scripts/releasexcframework.sh tvos 3.x | ||
#call ./scripts/releasexcframework.sh iphone 4.0 | ||
#call ./scripts/releasexcframework.sh tvos 4.0 | ||
|
||
# Compile Plugin | ||
if [[$1 == "tvos"]] then; | ||
GODOT_PLUGINS="inappstore icloud" | ||
elif [[$1 == "iphone"]] then; | ||
GODOT_PLUGINS="gamecenter inappstore icloud camera arkit apn photo_picker" | ||
fi | ||
|
||
rm -rf ./bin/$1 | ||
mkdir ./bin/$1 | ||
|
||
# Compile Plugin | ||
for lib in $GODOT_PLUGINS; do | ||
./scripts/generate_xcframework.sh $lib release $1 | ||
./scripts/generate_xcframework.sh $lib release_debug $1 | ||
mv ./bin/${lib}.release_debug.xcframework ./bin/${lib}.debug.xcframework | ||
./scripts/generate_xcframework_$1.sh $lib release $2 | ||
./scripts/generate_xcframework_$1.sh $lib release_debug $2 | ||
mv ./bin/$1/${lib}.release_debug.xcframework ./bin/$1/${lib}.debug.xcframework | ||
done | ||
|
||
# Move to release folder | ||
|
||
rm -rf ./bin/release | ||
mkdir ./bin/release | ||
|
||
mkdir ./bin/$1/release | ||
|
||
# Move Plugin | ||
for lib in $GODOT_PLUGINS; do | ||
mkdir ./bin/release/${lib} | ||
mv ./bin/${lib}.{release,debug}.xcframework ./bin/release/${lib} | ||
cp ./plugins/${lib}/${lib}.gdip ./bin/release/${lib} | ||
done | ||
mkdir ./bin/$1/release/${lib} | ||
mv ./bin/$1/${lib}.{release,debug}.xcframework ./bin/$1/release/${lib} | ||
cp ./plugins/${lib}/${lib}.gdip ./bin/$1/release/${lib}/${lib}.gdatvp | ||
done |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops...
Accidentally sent this development. Its deferred purchase.
The event is used when a purchase has been initiated outside of the app.