Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 83c9918
Showing
52 changed files
with
10,761 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*/dist | ||
*/build | ||
*.jar | ||
*.zip | ||
private | ||
*/lib/impl | ||
certs | ||
*/.cn1 | ||
.DS_Store | ||
!WebView.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,215 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!--build_version=3.0--> | ||
<!-- | ||
This build script was generated by Codename One to build native mobile applications using Java. | ||
To learn more about Codename One go to https://www.codenameone.com/ | ||
--> | ||
|
||
|
||
<project name="CN1AppleSignIn" default="default" basedir="."> | ||
<description>Builds, tests, and runs the project CN1AppleSignIn.</description> | ||
<import file="nbproject/build-impl.xml"/> | ||
<property file="codenameone_settings.properties"/> | ||
|
||
<target depends="init,compile,jar" name="compile-test"> | ||
</target> | ||
|
||
<target depends="compile-test" name="-do-test-run"> | ||
</target> | ||
|
||
<target depends="-do-test-run" description="Run unit tests." name="test"> | ||
<echo>Currently testing a library project isn't supported</echo> | ||
</target> | ||
|
||
<target name="-pre-compile"> | ||
<echo>Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller | ||
code size and wider device support</echo> | ||
<mkdir dir="build/tmp"/> | ||
<javac destdir="build/tmp" | ||
source="1.8" | ||
target="1.8" | ||
bootclasspath="lib/CLDC11.jar" | ||
classpath="${javac.classpath}:${build.classes.dir}"> | ||
<src path="${src.dir}"/> | ||
</javac> | ||
</target> | ||
|
||
|
||
<target name="-pre-init"> | ||
<property name="javac.source" value="1.8" /> | ||
<property name="javac.target" value="1.8" /> | ||
</target> | ||
|
||
<target name="run"> | ||
<echo>You can't run a library project</echo> | ||
</target> | ||
|
||
<target name="debug"> | ||
<echo>You can't run a library project</echo> | ||
</target> | ||
|
||
<target name="Stubs"> | ||
<delete dir="build/stubs"/> | ||
<javadoc sourcepath="src" | ||
classpath="lib/CodenameOne.jar:lib/CLDC11.jar" | ||
docletpath="Stubber.jar" | ||
doclet="com.codename1.build.client.StubGenerator"> | ||
<fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}"> | ||
<filename name="**/*.java"/> | ||
</fileset> | ||
</javadoc> | ||
</target> | ||
|
||
<target name="jar" depends="compile,Stubs"> | ||
<mkdir dir="build/lib" /> | ||
<zip basedir="${build.classes.dir}" compress="false" destfile="build/lib/main.zip" /> | ||
<zip basedir="build/stubs" compress="false" destfile="build/lib/stubs.zip" /> | ||
<copy file="manifest.properties" todir="build/lib" /> | ||
<copy file="codenameone_library_appended.properties" todir="build/lib" /> | ||
<copy file="codenameone_library_required.properties" todir="build/lib" /> | ||
<antcall target="buildNativeIOS" /> | ||
<antcall target="buildNativeRIM" /> | ||
<antcall target="buildNativeAND" /> | ||
<antcall target="buildNativeSE" /> | ||
<antcall target="buildNativeWIN" /> | ||
<antcall target="buildNativeME" /> | ||
<antcall target="buildNativeJS" /> | ||
<mkdir dir="dist" /> | ||
<zip basedir="build/lib" compress="true" destfile="dist/${application.title}.cn1lib" /> | ||
<copy file="dist/${application.title}.cn1lib" todir="../CN1AppleSignInDemo/lib"/> | ||
<ant dir="../CN1AppleSignInDemo" target="refresh-libs-impl" usenativebasedir="true"/> | ||
</target> | ||
|
||
<target name="buildNativeRIM"> | ||
<path id="rimNativeDir"> | ||
<fileset dir="native/rim"/> | ||
</path> | ||
<property name="test.rimDir.property" refid="rimNativeDir"/> | ||
<condition property="doesntHaveRimFiles"> | ||
<equals arg1="" arg2="${test.rimDir.property}"/> | ||
</condition> | ||
|
||
<antcall target="createRimZip" /> | ||
</target> | ||
|
||
<target name="createRimZip" | ||
unless="doesntHaveRimFiles"> | ||
<echo>Zipping rim native code</echo> | ||
<zip basedir="native/rim" compress="false" destfile="build/lib/nativerim.zip" /> | ||
</target> | ||
|
||
<target name="buildNativeAND"> | ||
<path id="andNativeDir"> | ||
<fileset dir="native/android"/> | ||
</path> | ||
<property name="test.andDir.property" refid="andNativeDir"/> | ||
<condition property="doesntHaveAndFiles"> | ||
<equals arg1="" arg2="${test.andDir.property}"/> | ||
</condition> | ||
|
||
<antcall target="createAndZip" /> | ||
</target> | ||
|
||
<target name="buildNativeSE"> | ||
<mkdir dir="native/javase" /> | ||
<path id="seNativeDir"> | ||
<fileset dir="native/javase"/> | ||
</path> | ||
<property name="test.seDir.property" refid="seNativeDir"/> | ||
<condition property="doesntHaveSeFiles"> | ||
<equals arg1="" arg2="${test.seDir.property}"/> | ||
</condition> | ||
|
||
<antcall target="createSeZip" /> | ||
</target> | ||
|
||
<target name="createSeZip" | ||
unless="doesntHaveSeFiles"> | ||
<echo>Zipping JavaSE native code</echo> | ||
<zip compress="false" destfile="build/lib/nativese.zip"> | ||
<fileset dir="native/javase" /> | ||
<!-- Uncomment the line below if you have jar files in your Java SE native code --> | ||
<!-- zipfileset src="native/javase/*.jar"/ --> | ||
</zip> | ||
</target> | ||
|
||
<target name="createAndZip" | ||
unless="doesntHaveAndFiles"> | ||
<echo>Zipping Android native code</echo> | ||
<zip basedir="native/android" compress="false" destfile="build/lib/nativeand.zip" /> | ||
</target> | ||
|
||
<target name="buildNativeWIN"> | ||
<path id="winNativeDir"> | ||
<fileset dir="native/win"/> | ||
</path> | ||
<property name="test.winDir.property" refid="winNativeDir"/> | ||
<condition property="doesntHaveWinFiles"> | ||
<equals arg1="" arg2="${test.winDir.property}"/> | ||
</condition> | ||
|
||
<antcall target="createWinZip" /> | ||
</target> | ||
|
||
<target name="createWinZip" | ||
unless="doesntHaveWinFiles"> | ||
<echo>Zipping win native code</echo> | ||
<zip basedir="native/win" compress="false" destfile="build/lib/nativewin.zip" /> | ||
</target> | ||
|
||
<target name="buildNativeIOS"> | ||
<path id="iosNativeDir"> | ||
<fileset dir="native/ios"/> | ||
</path> | ||
<property name="test.iosDir.property" refid="iosNativeDir"/> | ||
<condition property="doesntHaveIosFiles"> | ||
<equals arg1="" arg2="${test.iosDir.property}"/> | ||
</condition> | ||
|
||
<antcall target="createIosZip" /> | ||
</target> | ||
|
||
<target name="createIosZip" | ||
unless="doesntHaveIosFiles"> | ||
<echo>Zipping ios native code</echo> | ||
<zip basedir="native/ios" compress="false" destfile="build/lib/nativeios.zip" /> | ||
</target> | ||
|
||
<target name="buildNativeME"> | ||
<path id="meNativeDir"> | ||
<fileset dir="native/j2me"/> | ||
</path> | ||
<property name="test.meDir.property" refid="meNativeDir"/> | ||
<condition property="doesntHaveMeFiles"> | ||
<equals arg1="" arg2="${test.meDir.property}"/> | ||
</condition> | ||
|
||
<antcall target="createMeZip" /> | ||
</target> | ||
|
||
<target name="createMeZip" | ||
unless="doesntHaveMeFiles"> | ||
<echo>Zipping me native code</echo> | ||
<zip basedir="native/j2me" compress="false" destfile="build/lib/nativeme.zip" /> | ||
</target> | ||
|
||
|
||
<target name="buildNativeJS"> | ||
<path id="jsNativeDir"> | ||
<fileset dir="native/javascript"/> | ||
</path> | ||
<property name="test.jsDir.property" refid="jsNativeDir"/> | ||
<condition property="doesntHaveJsFiles"> | ||
<equals arg1="" arg2="${test.jsDir.property}"/> | ||
</condition> | ||
|
||
<antcall target="createJsZip" /> | ||
</target> | ||
|
||
<target name="createJsZip" | ||
unless="doesntHaveJsFiles"> | ||
<echo>Zipping javascript native code</echo> | ||
<zip basedir="native/javascript" compress="false" destfile="build/lib/nativejavascript.zip" /> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Place here properties that should be appended to an existed property if exists | ||
#in the project codenameone_settings.properties for example codename1.arg.android.xpermissions | ||
#is an appended type property. | ||
# | ||
#Wed Jan 09 17:59:31 IST 2013 | ||
codename1.arg.ios.add_libs=;AuthenticationServices.framework |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# | ||
#Mon Dec 02 06:25:17 PST 2019 | ||
codename1.arg.java.version=8 | ||
codename1.arg.ios.entitlements.applesignin=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
X-COMMENT: Main-Class will be added automatically by build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Codename One libray manifest | ||
|
17 changes: 17 additions & 0 deletions
17
CN1AppleSignIn/native/android/com/codename1/auth/apple/AppleSignInNativeImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.codename1.auth.apple; | ||
|
||
public class AppleSignInNativeImpl { | ||
public void doLogin() { | ||
} | ||
|
||
public void initializeStateChangeNotifications() { | ||
} | ||
|
||
public void getCredentialState(String param) { | ||
} | ||
|
||
public boolean isSupported() { | ||
return false; | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
CN1AppleSignIn/native/ios/com_codename1_auth_apple_AppleSignInNativeImpl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <AuthenticationServices/AuthenticationServices.h> | ||
|
||
@interface com_codename1_auth_apple_AppleSignInNativeImpl : NSObject<ASAuthorizationControllerDelegate,ASAuthorizationControllerPresentationContextProviding> { | ||
} | ||
|
||
-(void)doLogin; | ||
-(void)initializeStateChangeNotifications; | ||
-(void)getCredentialState:(NSString*)param; | ||
-(BOOL)isSupported; | ||
@end |
Oops, something went wrong.