bin/calabash-android-build.rb in testautoa-0.4.1 vs bin/calabash-android-build.rb in testautoa-0.4.2.pre1
- old
+ new
@@ -20,9 +20,13 @@
unless system %Q{"#{RbConfig.ruby}" -pi.bak -e "gsub(/#targetPackage#/, '#{package_name(app)}')" AndroidManifest.xml}
raise "Could not replace package name in manifest"
end
+ unless system %Q{"#{RbConfig.ruby}" -pi.bak -e "gsub(/#testPackage#/, '#{package_name(app)}.test')" AndroidManifest.xml}
+ raise "Could not replace test package name in manifest"
+ end
+
unless system %Q{"#{ENV["ANDROID_HOME"]}/platform-tools/aapt" package -M AndroidManifest.xml -I "#{android_platform}/android.jar" -F dummy.apk}
raise "Could not create dummy.apk"
end
Zip::ZipFile.new("dummy.apk").extract("AndroidManifest.xml","customAndroidManifest.xml")
\ No newline at end of file