@Test public void testFindDirectMatch() throws Exception { ProvisioningProfile p1 = createProfile("Profile 1", "App 1", "DF6YH89WE3", "DF6YH89WE3.*", false, null, "0123456789"); ProvisioningProfile p2 = createProfile("Profile 2", "App 2", "HSKDO63H63", "HSKDO63H63.com.*", false, null, "0123456789"); ProvisioningProfile p3 = createProfile("Profile 3", "App 3", "GS73MK54DW", "GS73MK54DW.com.foo.bar", false, null, "0123456789"); SigningIdentity si = new SigningIdentity("foo", "0123456789"); ProvisioningProfile result = ProvisioningProfile.find(Arrays.asList(p1, p2, p3), si, "com.foo.bar"); assertSame(p3, result); }
public static ProvisioningProfile find(List<ProvisioningProfile> profiles, String search) { for (ProvisioningProfile p : profiles) { if (p.uuid.equals(search) || p.appIdPrefix.equals(search) || p.appIdName != null && p.appIdName.equals(search) || p.name.equals(search)) { return p; } } throw new IllegalArgumentException("No provisioning profile found matching '" + search + "'"); }
ProvisioningProfile implements Comparable<ProvisioningProfile> { public static ProvisioningProfile find(List<ProvisioningProfile> profiles, String search) { for (ProvisioningProfile p : profiles) { if (p.uuid.equals(search) || p.appIdPrefix.equals(search) || p.appIdName != null && p.appIdName.equals(search) || p.name.equals(search)) { return p; } } throw new IllegalArgumentException("No provisioning profile found matching '" + search + "'"); } }
ProvisioningProfile implements Comparable<ProvisioningProfile> { public static ProvisioningProfile find(List<ProvisioningProfile> profiles, String search) { for (ProvisioningProfile p : profiles) { if (p.uuid.equals(search) || p.appIdPrefix.equals(search) || p.appIdName != null && p.appIdName.equals(search) || p.name.equals(search)) { return p; } } throw new IllegalArgumentException("No provisioning profile found matching '" + search + "'"); } ProvisioningProfile(File file, NSDictionary dict); }
ProvisioningProfile implements Comparable<ProvisioningProfile> { public static ProvisioningProfile find(List<ProvisioningProfile> profiles, String search) { for (ProvisioningProfile p : profiles) { if (p.uuid.equals(search) || p.appIdPrefix.equals(search) || p.appIdName != null && p.appIdName.equals(search) || p.name.equals(search)) { return p; } } throw new IllegalArgumentException("No provisioning profile found matching '" + search + "'"); } ProvisioningProfile(File file, NSDictionary dict); @Override int compareTo(ProvisioningProfile o); Type getType(); File getFile(); NSDictionary getDict(); String getUuid(); String getName(); String getAppIdName(); String getAppIdPrefix(); Date getCreationDate(); Date getExpirationDate(); NSDictionary getEntitlements(); static List<ProvisioningProfile> list(); static ProvisioningProfile find(List<ProvisioningProfile> profiles, String search); static ProvisioningProfile find(List<ProvisioningProfile> profiles, SigningIdentity signingIdentity, String bundleId); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static void main(String[] args); }
ProvisioningProfile implements Comparable<ProvisioningProfile> { public static ProvisioningProfile find(List<ProvisioningProfile> profiles, String search) { for (ProvisioningProfile p : profiles) { if (p.uuid.equals(search) || p.appIdPrefix.equals(search) || p.appIdName != null && p.appIdName.equals(search) || p.name.equals(search)) { return p; } } throw new IllegalArgumentException("No provisioning profile found matching '" + search + "'"); } ProvisioningProfile(File file, NSDictionary dict); @Override int compareTo(ProvisioningProfile o); Type getType(); File getFile(); NSDictionary getDict(); String getUuid(); String getName(); String getAppIdName(); String getAppIdPrefix(); Date getCreationDate(); Date getExpirationDate(); NSDictionary getEntitlements(); static List<ProvisioningProfile> list(); static ProvisioningProfile find(List<ProvisioningProfile> profiles, String search); static ProvisioningProfile find(List<ProvisioningProfile> profiles, SigningIdentity signingIdentity, String bundleId); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static void main(String[] args);  }