apktool 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/apktool.rb +2 -1
- data/lib/apktool/version.rb +1 -1
- data/spec/apktool_spec.rb +10 -0
- metadata +1 -1
data/lib/apktool.rb
CHANGED
@@ -2,7 +2,8 @@ require "apktool/version"
|
|
2
2
|
|
3
3
|
module Apktool
|
4
4
|
|
5
|
-
APKTOOL_PATH
|
5
|
+
APKTOOL_PATH = File.dirname(__FILE__) + "/apktool/apktool"
|
6
|
+
DEBUG_KEYSTORE_PATH = File.dirname(__FILE__) + "/apktool/debug.keystore"
|
6
7
|
|
7
8
|
class << self
|
8
9
|
def exec(cmd)
|
data/lib/apktool/version.rb
CHANGED
data/spec/apktool_spec.rb
CHANGED
@@ -10,5 +10,15 @@ describe Apktool do
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
+
describe "constants" do
|
14
|
+
it "get APKTOOL_PATH" do
|
15
|
+
Apktool::APKTOOL_PATH.should =~ /\/apktool/
|
16
|
+
end
|
17
|
+
|
18
|
+
it "get DEBUG_KEYSTORE_PATH" do
|
19
|
+
Apktool::DEBUG_KEYSTORE_PATH.should =~ /\/debug.keystore/
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
13
23
|
end
|
14
24
|
|