You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
745 B
33 lines
745 B
#!/bin/bash
|
|
|
|
echo "Checking Android project structure..."
|
|
|
|
# Check if this is an Android project
|
|
if [ -f "AndroidManifest.xml" ]; then
|
|
echo "Found AndroidManifest.xml"
|
|
else
|
|
echo "Error: No AndroidManifest.xml found"
|
|
exit 1
|
|
fi
|
|
|
|
# Check if src directory exists
|
|
if [ -d "src" ]; then
|
|
echo "Found src directory"
|
|
else
|
|
echo "Error: No src directory found"
|
|
exit 1
|
|
fi
|
|
|
|
# Check if res directory exists
|
|
if [ -d "res" ]; then
|
|
echo "Found res directory"
|
|
else
|
|
echo "Error: No res directory found"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Project structure is valid!"
|
|
echo "The project should be ready to build with Android SDK tools."
|
|
echo "You can use the following command to build the project:"
|
|
echo "android update project -p . && ant debug"
|