Skip to content

Commit e4aec63

Browse files
committed
android-game-sdk-rs: bump v2.0.2 -> v4.0.0
Signed-off-by: William Casarin <jb55@jb55.com>
1 parent d059402 commit e4aec63

File tree

22 files changed

+4732
-3615
lines changed

22 files changed

+4732
-3615
lines changed

android-activity/android-games-sdk/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This is a basic checklist for things that need to be done before updating to a n
1010

1111
- [ ] Ensure all patches applied to the local repo have been backported (see section below on backporting patches)
1212
- [ ] Rebase patches on top of a new *release* version of agdk. If you're not sure which version you should be rebasing on, open an issue.
13+
- [ ] If there have been substantial path changes, remove the existing files first so that its a clean graft
1314
- [ ] Copy any new files over from the new version using the [copy_files](./copy_files) script (see section below on copying files)
1415
- [ ] Update [build.rs](../build.rs) with any new includes and src files
1516
- [ ] Regenerate ffi bindings using [generate_bindings.sh](./generate_bindings.sh)

android-activity/android-games-sdk/copy-files

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,27 @@ mkdir -p "$DEST_DIR"
3535
while IFS= read -r file || [ -n "$file" ]; do
3636
# Skip empty lines and comments
3737
if [ -z "$file" ] || [[ "$file" =~ ^# ]]; then
38-
continue
38+
continue
3939
fi
4040

41+
fpath="$(find "$SOURCE_DIR" -name "$file" -type f)"
42+
4143
# Find matching files
42-
find "$SOURCE_DIR" -name "$file" -type f | while read -r file; do
43-
# Get the relative path
44-
rel_path="${file#$SOURCE_DIR/}"
45-
dest_file="$DEST_DIR/$rel_path"
46-
dest_dir=$(dirname "$dest_file")
47-
48-
# Create destination directory structure
49-
mkdir -p "$dest_dir"
50-
51-
# Copy the file
52-
cp "$file" "$dest_file"
53-
echo "Copied: $rel_path"
54-
done
44+
if [ -f "$fpath" ]; then
45+
# Get the relative path
46+
rel_path="${fpath#$SOURCE_DIR/}"
47+
dest_file="$DEST_DIR/$rel_path"
48+
dest_dir=$(dirname "$dest_file")
49+
50+
# Create destination directory structure
51+
mkdir -p "$dest_dir"
52+
53+
# Copy the file
54+
cp "$fpath" "$dest_file"
55+
echo "Copied: $rel_path"
56+
else
57+
echo "ERROR: '$file' not found"
58+
fi
5559
done < "$FILE_LIST"
5660

5761
echo "Copy operation completed."
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
GameActivity.h
1+
android_native_app_glue.c
2+
android_native_app_glue.h
23
GameActivity.cpp
3-
GameActivityEvents.h
44
GameActivityEvents.cpp
5+
GameActivityEvents.h
6+
GameActivityEvents_internal.h
7+
GameActivity.h
58
GameActivityLog.h
9+
gamesdk_common.h
610
gametextinput.cpp
711
gametextinput.h
8-
gamecommon.h
9-
gamesdk_common.h
10-
android_native_app_glue.h
11-
android_native_app_glue.c
12+
system_utils.cpp
13+
system_utils.h

0 commit comments

Comments
 (0)