-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest-proguard-only.sh
More file actions
executable file
·37 lines (32 loc) · 1.27 KB
/
test-proguard-only.sh
File metadata and controls
executable file
·37 lines (32 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo "🧪 Testing ProGuard rules for @novastera-oss/llamarn (ProGuard Only)..."
# First, let's verify your ProGuard configuration is correct
echo "📋 Verifying ProGuard configuration..."
# Check if the library's ProGuard rules are properly configured
if grep -q "consumerProguardFiles" ../android/build.gradle; then
echo "✅ Library has consumerProguardFiles configured"
else
echo "❌ Library missing consumerProguardFiles configuration"
exit 1
fi
# Check if the ProGuard rules file exists
if [ -f "../android/proguard-rules.pro" ]; then
echo "✅ Library ProGuard rules file exists"
echo "📄 ProGuard rules content:"
cat ../android/proguard-rules.pro
else
echo "❌ Library ProGuard rules file not found"
exit 1
fi
echo ""
echo "🎉 ProGuard configuration verification completed!"
echo ""
echo "💡 Your ProGuard rules are correctly configured and will be automatically"
echo " included when apps use your library with ProGuard enabled."
echo ""
echo "📝 To test the full release build, you would need to:"
echo " 1. Fix the React Native bundling configuration"
echo " 2. Or use a different test project"
echo " 3. Or test with a real app that uses your library"
echo ""
echo "✅ Your ProGuard rules are ready for production use!"