Skip to content

Commit

Permalink
4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-tamago committed Dec 26, 2022
1 parent 4070145 commit 43f71a2
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 17 deletions.
21 changes: 19 additions & 2 deletions NoCameraSound/NoCameraSound.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
3D369D742958FB5400A6E7C4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D369D732958FB5400A6E7C4 /* main.m */; };
3D369D7F29590DFD00A6E7C4 /* poc.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D369D7E29590DFD00A6E7C4 /* poc.m */; };
3D369D8E2959C83F00A6E7C4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3D369D8D2959C83F00A6E7C4 /* Assets.xcassets */; };
3D9B1A9D295A1C540025A0E0 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3D9B1A9F295A1C540025A0E0 /* Localizable.strings */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -32,6 +33,9 @@
3D369D7D29590DF900A6E7C4 /* poc.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = poc.h; sourceTree = "<group>"; };
3D369D7E29590DFD00A6E7C4 /* poc.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = poc.m; sourceTree = "<group>"; };
3D369D8D2959C83F00A6E7C4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = "../../../Downloads/AppIcons-3/Assets.xcassets"; sourceTree = "<group>"; };
3D9B1A99295A1C230025A0E0 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Main.strings; sourceTree = "<group>"; };
3D9B1A9A295A1C240025A0E0 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
3D9B1A9E295A1C540025A0E0 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Localizable.strings; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -64,6 +68,7 @@
3D369D602958FB5300A6E7C4 /* NoCameraSound */ = {
isa = PBXGroup;
children = (
3D9B1A9F295A1C540025A0E0 /* Localizable.strings */,
3D369D612958FB5300A6E7C4 /* AppDelegate.h */,
3D369D622958FB5300A6E7C4 /* AppDelegate.m */,
3D369D642958FB5300A6E7C4 /* SceneDelegate.h */,
Expand Down Expand Up @@ -122,6 +127,7 @@
knownRegions = (
en,
Base,
ja,
);
mainGroup = 3D369D552958FB5300A6E7C4;
productRefGroup = 3D369D5F2958FB5300A6E7C4 /* Products */;
Expand All @@ -139,6 +145,7 @@
buildActionMask = 2147483647;
files = (
3D369D712958FB5400A6E7C4 /* LaunchScreen.storyboard in Resources */,
3D9B1A9D295A1C540025A0E0 /* Localizable.strings in Resources */,
3D369D8E2959C83F00A6E7C4 /* Assets.xcassets in Resources */,
3D369D6C2958FB5300A6E7C4 /* Main.storyboard in Resources */,
);
Expand Down Expand Up @@ -166,6 +173,7 @@
isa = PBXVariantGroup;
children = (
3D369D6B2958FB5300A6E7C4 /* Base */,
3D9B1A99295A1C230025A0E0 /* ja */,
);
name = Main.storyboard;
sourceTree = "<group>";
Expand All @@ -174,10 +182,19 @@
isa = PBXVariantGroup;
children = (
3D369D702958FB5400A6E7C4 /* Base */,
3D9B1A9A295A1C240025A0E0 /* ja */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
3D9B1A9F295A1C540025A0E0 /* Localizable.strings */ = {
isa = PBXVariantGroup;
children = (
3D9B1A9E295A1C540025A0E0 /* ja */,
);
name = Localizable.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
Expand Down Expand Up @@ -313,7 +330,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.0;
MARKETING_VERSION = 4.1;
PRODUCT_BUNDLE_IDENTIFIER = "com.straight-tamago.NoCameraSound";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down Expand Up @@ -341,7 +358,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 4.0;
MARKETING_VERSION = 4.1;
PRODUCT_BUNDLE_IDENTIFIER = "com.straight-tamago.NoCameraSound";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down
Binary file not shown.
Binary file added NoCameraSound/NoCameraSound/.DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions NoCameraSound/NoCameraSound/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3JV-RE-y9F">
<rect key="frame" x="95.000000000000014" y="397" width="200.33333333333337" height="50.333333333333314"/>
<rect key="frame" x="89.666666666666686" y="396.66666666666669" width="211" height="51"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="tinted" title="シャッター音 無効化" buttonSize="large"/>
<buttonConfiguration key="configuration" style="tinted" title="Disable Shutter Sound" buttonSize="large"/>
<connections>
<action selector="go:" destination="BYZ-38-t0r" eventType="touchUpInside" id="0n2-fJ-Ue0"/>
</connections>
</button>
<activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" animating="YES" style="medium" translatesAutoresizingMaskIntoConstraints="NO" id="dtB-vp-Gi9">
<rect key="frame" x="185" y="455" width="20" height="20"/>
<rect key="frame" x="185" y="455.33333333333331" width="20" height="20"/>
</activityIndicatorView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tjJ-np-Gq7">
<rect key="frame" x="329" y="47" width="45" height="40"/>
Expand All @@ -41,7 +41,7 @@
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="NoCameraSound" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5fr-iM-fEy">
<rect key="frame" x="75.333333333333329" y="345" width="239.66666666666669" height="36"/>
<rect key="frame" x="75.333333333333329" y="344.66666666666669" width="239.66666666666669" height="36"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="30"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
Expand Down
21 changes: 12 additions & 9 deletions NoCameraSound/NoCameraSound/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,33 @@ - (void)viewDidLoad {
}

- (IBAction)go:(id)sender {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"操作を選択"
message:@"処理が完了するとこのアプリは落ちるけど、シャッター音は消えてるはずだよ。(一定時間経過or再起動で戻る)"
UIAlertController *alert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Select Operation", nil)
message:NSLocalizedString(@"When the process is complete, this app will crash, but the shutter sound should be gone. (It will return to normal after a certain period of time or restart)", nil)
preferredStyle:UIAlertControllerStyleAlert];


UIAlertAction *firstAction = [UIAlertAction actionWithTitle:@"写真撮影(スクショを含む)"
UIAlertAction *firstAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Photo & ScreenShot", nil)
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
self->_running.hidden = false;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 2 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
startr_0();
});
}];
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:@"動画撮影開始(画面収録を含む)"
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Video Recording (Start)", nil)
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
self->_running.hidden = false;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 2 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
startr_1();
});
}];
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:@"動画撮影終了(画面収録を含む)"
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Video Recording (End)", nil)
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
self->_running.hidden = false;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 2 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
startr_2();
});
}];
UIAlertAction *fourthAction = [UIAlertAction actionWithTitle:@"やめる"
UIAlertAction *fourthAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Close", nil)
style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) {
}];

Expand All @@ -58,12 +58,15 @@ - (IBAction)go:(id)sender {
}

- (IBAction)info:(id)sender {
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
NSString *versionText = @"NoCameraSound v";
NSString *fullversion = [versionText stringByAppendingString:version];
UIApplication *application = [UIApplication sharedApplication];
NSURL *URL = [NSURL URLWithString:@"https://github.com/straight-tamago/NoCameraSound"];
NSURL *URL2 = [NSURL URLWithString:@"https://github.com/zhuowei/MacDirtyCowDemo"];

UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"NoCameraSound 4.0"
message:@"by すとれーとたまご★"
UIAlertController *alert = [UIAlertController alertControllerWithTitle:fullversion
message:NSLocalizedString(@"by straight-tamago", nil)
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *firstAction = [UIAlertAction actionWithTitle:@"Source Code"
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
Expand All @@ -81,7 +84,7 @@ - (IBAction)info:(id)sender {
}
}];
}];
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:@"Close"
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Close", nil)
style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) {
}];

Expand Down
12 changes: 12 additions & 0 deletions NoCameraSound/NoCameraSound/en.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

/* Class = "UIButton"; configuration.title = "Disable Shutter Sound"; ObjectID = "3JV-RE-y9F"; */
"3JV-RE-y9F.configuration.title" = "Disable Shutter Sound";

/* Class = "UIButton"; normalTitle = "Button"; ObjectID = "3JV-RE-y9F"; */
"3JV-RE-y9F.normalTitle" = "Button";

/* Class = "UILabel"; text = "NoCameraSound"; ObjectID = "5fr-iM-fEy"; */
"5fr-iM-fEy.text" = "NoCameraSound";

/* Class = "UIButton"; normalTitle = "Button"; ObjectID = "tjJ-np-Gq7"; */
"tjJ-np-Gq7.normalTitle" = "Button";
15 changes: 15 additions & 0 deletions NoCameraSound/NoCameraSound/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
Localizable.strings
NoCameraSound

Created by mini on 2022/12/27.

*/

"by straight-tamago" = "by すとれーとたまご★";
"Close" = "閉じる";
"Select Operation" = "操作を選択";
"When the process is complete, this app will crash, but the shutter sound should be gone. (It will return to normal after a certain period of time or restart)" = "処理が完了するとこのアプリは落ちるけど、シャッター音は消えてるはずだよ。(一定時間経過or再起動で戻る)";
"Photo & ScreenShot" = "写真撮影(スクショを含む)";
"Video Recording (Start)" = "動画撮影開始(画面収録を含む)";
"Video Recording (End)" = "動画撮影終了(画面収録を含む)";
7 changes: 5 additions & 2 deletions NoCameraSound/NoCameraSound/ja.lproj/Main.strings
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@

/* Class = "UIButton"; configuration.title = "シャッター音 無効化"; ObjectID = "3JV-RE-y9F"; */
"3JV-RE-y9F.configuration.title" = "シャッター音 無効化";
"3JV-RE-y9F.configuration.title" = "Button";

/* Class = "UIButton"; normalTitle = "Button"; ObjectID = "3JV-RE-y9F"; */
"3JV-RE-y9F.normalTitle" = "Button";
"3JV-RE-y9F.normalTitle" = "シャッター音 無効化";

/* Class = "UILabel"; text = "NoCameraSound"; ObjectID = "5fr-iM-fEy"; */
"5fr-iM-fEy.text" = "NoCameraSound";

/* Class = "UIButton"; normalTitle = "Button"; ObjectID = "tjJ-np-Gq7"; */
"tjJ-np-Gq7.normalTitle" = "Button";

0 comments on commit 43f71a2

Please sign in to comment.