Fix up our external sample PrenotCalculator so it uses ios_application instead of just objc_binary. RELNOTES: -- MOS_MIGRATED_REVID=112601304
diff --git a/examples/objc/BUILD b/examples/objc/BUILD index 3aeee39..e7e4bfb 100644 --- a/examples/objc/BUILD +++ b/examples/objc/BUILD
@@ -12,20 +12,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -objc_binary( +ios_application( name = "PrenotCalculator", - srcs = [ - "PrenotCalculator/main.m", - ], + binary = ":PrenotCalculator_binary", infoplist = "PrenotCalculator/PrenotCalculator-Info.plist", visibility = ["//visibility:public"], - deps = [ - ":PrenotCalculatorClasses", - ], ) -objc_library( - name = "PrenotCalculatorClasses", +objc_binary( + name = "PrenotCalculator_binary", srcs = [ "PrenotCalculator/AppDelegate.m", "PrenotCalculator/CalculatedValues.m", @@ -34,6 +29,7 @@ "PrenotCalculator/Equation.m", "PrenotCalculator/Literal.m", "PrenotCalculator/ValuesViewController.m", + "PrenotCalculator/main.m", ], hdrs = glob( ["**/*.h"],